* reported unless {@code ignoreEncodingErrors} is true.
*
* @param ignoreEncodingErrors ignore encoding errors if true
* @return a CharSequence if available; {@code null} otherwise
* @throws IllegalStateException if this file object was
* opened for writing and does not support reading
* @throws UnsupportedOperationException if this kind of
* file object does not support character access
* @throws IOException if an I/O error occurred
*/
CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException;
/**
* Gets a Writer for this file object.
*
* @return a Writer
* @throws IllegalStateException if this file object was
* opened for reading and does not support writing
* @throws UnsupportedOperationException if this kind of
* file object does not support character access
* @throws IOException if an I/O error occurred
*/
Writer openWriter() throws IOException;
/**
* Gets the time this file object was last modified. The time is
* measured in milliseconds since the epoch (00:00:00 GMT, January
* 1, 1970).
*
* @return the time this file object was last modified; or 0 if
* the file object does not exist, if an I/O error occurred, or if
* the operation is not supported
*/
long getLastModified();
/**
* Deletes this file object. In case of errors, returns false.
* @return true if and only if this file object is successfully
* deleted; false otherwise
*/
boolean delete();
}
=2=
THE END |