public abstract CharSequence getCharContent (boolean ignoreEncodingErrors) throws IOException

Returns the character content of this file object, if available. Any byte that cannot be decoded will be replaced by the default translation character. In addition, a diagnostic may be reported unless ignoreEncodingErrors is true.

Parameters:
ignoreEncodingErrors    ignore encoding errors if true

Returns:  a CharSequence if available; null otherwise

Exceptions:
IllegalStateException    if this file object was opened for writing and does not support reading
UnsupportedOperationException    if this kind of file object does not support character access
IOException    if an I/O error occurred