JavaFileManager (Java SE 25 & JDK 25)
- All Superinterfaces:
AutoCloseable, Closeable, Flushable, OptionChecker
- All Known Subinterfaces:
StandardJavaFileManager
- All Known Implementing Classes:
ForwardingJavaFileManager
-
Nested Class Summary
Nested Classes
static interfaceInterface for locations of file objects.
-
Method Summary
voidclose()Releases any resources opened by this file manager directly or indirectly.
default booleanDetermines whether or not a given file object is "contained in" a specified location.
voidflush()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 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.
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.
booleanbooleanDetermines 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 by
getLocationForModuleorlistModuleLocations.booleanCompares two file objects and returns true if they represent the same underlying object.
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.
-
Method Details
-
getClassLoader
-
list
-
inferBinaryName
-
isSameFile
-
handleOption
-
hasLocation
-
getJavaFileForInput
-
getJavaFileForOutput
-
getJavaFileForOutputForOriginatingFiles
-
getFileForInput
-
getFileForOutput
-
getFileForOutputForOriginatingFiles
-
flush
-
close
-
getLocationForModule
-
getLocationForModule
-
getServiceLoader
-
inferModuleName
-
listLocationsForModules
-
contains
-