Unless stated otherwise, references in this class to "this file object" should be interpreted as referring indirectly to the delegate file object.
| Modifier and Type | Field and Description |
|---|---|
| protected final F | fileObject
The file object to which all methods are delegated. |
| Access | Constructor and Description |
|---|---|
| protected | ForwardingFileObject(F
delegate to this file object fileObject)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public CharSequence | getCharContent(boolean ignoreEncodingErrors)
Implements javax. Returns the character content of this file object, if available. |
| public long | getLastModified()
Implements javax. Returns the time this file object was last modified. |
| public String | getName()
Implements javax. Returns a user-friendly name for this file object. |
| public InputStream | openInputStream()
Implements javax. Returns an InputStream for this file object. |
| public OutputStream | openOutputStream()
Implements javax. Returns an OutputStream for this file object. |
| public Reader | openReader(boolean ignoreEncodingErrors)
Implements javax. Returns a reader for this object. |
| public Writer | |
| public URI |
| fileObject | back to summary |
|---|---|
| protected final F fileObject The file object to which all methods are delegated. | |
| ForwardingFileObject | back to summary |
|---|---|
| protected ForwardingFileObject(F fileObject) Creates a new instance of
| |
| delete | back to summary |
|---|---|
| public boolean delete() Implements javax. Doc from javax. Deletes this file object. In case of errors, returns false.
| |
| getCharContent | back to summary |
|---|---|
| public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException Implements javax. Doc from javax. 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() Implements javax. Doc from javax. 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() Implements javax. Doc from javax. 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 Implements javax. Doc from javax. Returns an InputStream for this file object.
| |
| openOutputStream | back to summary |
|---|---|
| public OutputStream openOutputStream() throws IOException Implements javax. Doc from javax. Returns an OutputStream for this file object.
| |
| openReader | back to summary |
|---|---|
| public Reader openReader(boolean ignoreEncodingErrors) throws IOException Implements javax. Doc from javax. 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 Implements javax. Doc from javax. Returns a Writer for this file object.
| |
| toUri | back to summary |
|---|---|
| public URI toUri() Implements javax. Doc from javax. Returns a URI identifying this file object.
| |