Home » openjdk-7 » com.sun.tools.javac.nio » [javadoc | source]
public interface: PathFileManager [javadoc | source]

All Implemented Interfaces:

All Known Implementing Classes:

File manager based on {@linkplain File java.nio.file.Path}. Eventually, this should be moved to javax.tools. Also, JavaCompiler might reasonably provide a method getPathFileManager, similar to getStandardFileManager . However, would need to be handled carefully as another forward reference from langtools to jdk.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Method from com.sun.tools.javac.nio.PathFileManager Summary:
getDefaultFileSystem,   getJavaFileObjects,   getJavaFileObjectsFromPaths,   getLocation,   getPath,   setDefaultFileSystem,   setLocation
Method from com.sun.tools.javac.nio.PathFileManager Detail:
 public FileSystem getDefaultFileSystem()
    Get the default file system used to create paths. If no value has been set, the default file system is FileSystems#getDefault .
 public Iterable<JavaFileObject> getJavaFileObjects(Path paths)
    Get file objects representing the given paths. Convenience method equivalent to:
        getJavaFileObjectsFromPaths({@linkplain java.util.Arrays#asList Arrays.asList}(paths))
 public Iterable<JavaFileObject> getJavaFileObjectsFromPaths(Iterable<Path> paths)
    Get file objects representing the given files.
 public Iterable<Path> getLocation(Location location)
    Get the search path associated with the given location.
 public Path getPath(FileObject fo)
    Return the Path for a file object that has been obtained from this file manager.
 public  void setDefaultFileSystem(FileSystem fs)
    Set the default file system used to create paths.
 public  void setLocation(Location location,
    Iterable<Path> searchPath) throws IOException
    Associate the given search path with the given location. Any previous value will be discarded.