Gets 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.
Returns:
a CharSequence if available; {@code null} otherwise
Parameters:
-
ignoreEncodingErrors - ignore encoding errors if true
Throws:
-
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