Methods Summary |
---|
public boolean | delete()Deletes this file object. In case of errors, returns false.
|
public java.lang.CharSequence | getCharContent(boolean ignoreEncodingErrors)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 {@code ignoreEncodingErrors} is true.
|
public long | getLastModified()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).
|
public java.lang.String | getName()Gets a user-friendly name for this file object. The exact
value returned is not specified but implementations should take
care to preserve names as given by the user. For example, if
the user writes the filename {@code "BobsApp\Test.java"} on
the command line, this method should return {@code
"BobsApp\Test.java"} whereas the {@linkplain #toUri toUri}
method might return {@code
file:///C:/Documents%20and%20Settings/UncleBob/BobsApp/Test.java}.
|
public java.io.InputStream | openInputStream()Gets an InputStream for this file object.
|
public java.io.OutputStream | openOutputStream()Gets an OutputStream for this file object.
|
public java.io.Reader | openReader(boolean ignoreEncodingErrors)Gets a reader for this object. The returned reader will
replace bytes that cannot be decoded with the default
translation character. In addition, the reader may report a
diagnostic unless {@code ignoreEncodingErrors} is true.
|
public java.io.Writer | openWriter()Gets a Writer for this file object.
|
public java.net.URI | toUri()Returns a URI identifying this file object.
|