Unless explicitly allowed, all methods in this interface might
throw a NullPointerException if given a null argument.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if and only if this file object is successfully deleted; false otherwiseDeletes this file object. |
| public CharSequence | Returns: a CharSequence if available;null otherwiseignore encoding errors if true ignoreEncodingErrors)Returns the character content of this file object, if available. |
| public long | Returns: 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 supportedReturns the time this file object was last modified. |
| public String | |
| public InputStream | |
| public OutputStream | |
| public Reader | Returns: a Readerignore encoding errors if true ignoreEncodingErrors)Returns a reader for this object. |
| public Writer | |
| public URI |
| delete | back to summary |
|---|---|
| public boolean delete() Deletes this file object. In case of errors, returns false.
| |
| getCharContent | back to summary |
|---|---|
| public 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
| |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() Returns the time this file object was last modified. The time is measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).
| |
| getName | back to summary |
|---|---|
| public String getName() Returns 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
| |
| openInputStream | back to summary |
|---|---|
| public InputStream openInputStream() throws IOException Returns an InputStream for this file object.
| |
| openOutputStream | back to summary |
|---|---|
| public OutputStream openOutputStream() throws IOException Returns an OutputStream for this file object.
| |
| openReader | back to summary |
|---|---|
| public Reader openReader(boolean ignoreEncodingErrors) throws IOException Returns 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
| |
| openWriter | back to summary |
|---|---|
| public Writer openWriter() throws IOException Returns a Writer for this file object.
| |
| toUri | back to summary |
|---|---|
| public URI toUri() Returns a URI identifying this file object.
| |