ForwardingFileObject (Java SE 16 & JDK 16) (original) (raw)

Type Parameters:

F - the kind of file object forwarded to by this object

All Implemented Interfaces:

[FileObject](FileObject.html "interface in javax.tools")

Direct Known Subclasses:

[ForwardingJavaFileObject](ForwardingJavaFileObject.html "class in javax.tools")


Forwards calls to a given file object. Subclasses of this class might override some of these methods and might also provide additional fields and methods.

Since:

1.6

Fields
protected [F](ForwardingFileObject.html "type parameter in ForwardingFileObject")
The file object which all methods are delegated to.

Constructors
protected
[ForwardingFileObject](#%3Cinit%3E%28F%29)​([F](ForwardingFileObject.html "type parameter in ForwardingFileObject") fileObject)
Creates a new instance of ForwardingFileObject.

boolean
[delete](#delete%28%29)()
Deletes this file object.
[getCharContent](#getCharContent%28boolean%29)​(boolean ignoreEncodingErrors)
Returns the character content of this file object, if available.
long
Returns the time this file object was last modified.
[getName](#getName%28%29)()
Returns a user-friendly name for this file object.
Returns an InputStream for this file object.
Returns an OutputStream for this file object.
[openReader](#openReader%28boolean%29)​(boolean ignoreEncodingErrors)
Returns a reader for this object.
Returns a Writer for this file object.
[toUri](#toUri%28%29)()
Returns a URI identifying this file object.

Methods declared in class java.lang.Object

[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)