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

Type Parameters:

M - the kind of file manager forwarded to by this object

All Implemented Interfaces:

[Closeable](../../../java.base/java/io/Closeable.html "interface in java.io"), [Flushable](../../../java.base/java/io/Flushable.html "interface in java.io"), [AutoCloseable](../../../java.base/java/lang/AutoCloseable.html "interface in java.lang"), [JavaFileManager](JavaFileManager.html "interface in javax.tools"), [OptionChecker](OptionChecker.html "interface in javax.tools")


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

Since:

1.6

Fields
protected [M](ForwardingJavaFileManager.html "type parameter in ForwardingJavaFileManager")
The file manager which all methods are delegated to.

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

void
[close](#close%28%29)()
Releases any resources opened by this file manager directly or indirectly.
boolean
Determines whether or not a given file object is "contained in" a specified location.
void
[flush](#flush%28%29)()
Flushes any resources opened for output by this file manager directly or indirectly.
Returns a class loader for loading plug-ins from the given package-oriented location.
Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location.
Returns a file object for output representing the specified relative name in the specified package in the given location.
Returns a file object for input representing the specified class of the specified kind in the given package-oriented location.
Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.
Gets a location for a named module within a location, which may be either a module-oriented location or an output location.
Gets a location for the module containing a specific file to be found within a location, which may be either a module-oriented location or an output location.
Get a service loader for a specific service class from a given location.
boolean
boolean
Determines if a location is known to this file manager.
Infers a binary name of a file object based on a package-oriented location.
Infer the name of the module from its location, as returned bygetLocationForModule or listModuleLocations.
boolean
Compares two file objects and return true if they represent the same underlying object.
int
Determines if the given option is supported and if so, the number of arguments the option takes.
Lists all file objects matching the given criteria in the given package-oriented location.
Lists the locations for all the modules in a module-oriented location or an output location.

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)