Interface StandardJavaFileManager
- All Superinterfaces:
AutoCloseable
,Closeable
,Flushable
,JavaFileManager
,OptionChecker
File manager based on
java.io.File
and java.nio.file.Path
.
A common way to obtain an instance of this class is using
getStandardFileManager, for example:
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();This file manager creates file objects representing regular files, zip file entries, or entries in similar file system based containers. Any file object returned from a file manager implementing this interface must observe the following behavior:DiagnosticCollector<JavaFileObject>
diagnostics = newDiagnosticCollector<JavaFileObject>()
; StandardJavaFileManager fm = compiler.getStandardFileManager(diagnostics, null, null);
- File names need not be canonical.
-
For file objects representing regular files
-
the method
FileObject.delete()
is equivalent toFile.delete()
, -
the method
FileObject.getLastModified()
is equivalent toFile.lastModified()
, -
the methods
-
the method