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

All Implemented Interfaces:

Implementation of PathFileManager: a JavaFileManager based on the use of java.nio.file.Path.

Just as a Path is somewhat analagous to a File, so too is this JavacPathFileManager analogous to JavacFileManager, as it relates to the support of FileObjects based on File objects (i.e. just RegularFileObject, not ZipFileObject and its variants.)

The default values for the standard locations supported by this file manager are the same as the default values provided by JavacFileManager -- i.e. as determined by the javac.file.Paths class. To override these values, call #setLocation .

To reduce confusion with Path objects, the locations such as "class path", "source path", etc, are generically referred to here as "search paths".

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.
Field Summary
protected  FileSystem defaultFileSystem     
Fields inherited from com.sun.tools.javac.util.BaseFileManager:
log,  charset,  options,  classLoaderClass,  contentCache
 public JavacPathFileManager(Context context,
    boolean register,
    Charset charset) 
    Create a JavacPathFileManager using a given context, optionally registering it as the JavaFileManager for that context.
Method from com.sun.tools.javac.nio.JavacPathFileManager Summary:
close,   flush,   getClassLoader,   getDefaultFileSystem,   getFileForInput,   getFileForOutput,   getJavaFileForInput,   getJavaFileForOutput,   getJavaFileObjects,   getJavaFileObjectsFromPaths,   getLocation,   getPath,   hasLocation,   inferBinaryName,   isDefaultBootClassPath,   isSameFile,   list,   setContext,   setDefaultFileSystem,   setLocation
Methods from com.sun.tools.javac.util.BaseFileManager:
cache,   decode,   getCachedContent,   getClassLoader,   getDecoder,   getEncodingName,   getKind,   getSource,   handleOption,   isDefaultBootClassPath,   isSupportedOption,   makeByteBuffer,   nullCheck,   nullCheck,   recycleByteBuffer,   setContext
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.nio.JavacPathFileManager Detail:
 public  void close() throws IOException 
 public  void flush() throws IOException 
 public ClassLoader getClassLoader(Location location) 
 public FileSystem getDefaultFileSystem() 
 public FileObject getFileForInput(Location location,
    String packageName,
    String relativeName) throws IOException 
 public FileObject getFileForOutput(Location location,
    String packageName,
    String relativeName,
    FileObject sibling) throws IOException 
 public JavaFileObject getJavaFileForInput(Location location,
    String className,
    Kind kind) throws IOException 
 public JavaFileObject getJavaFileForOutput(Location location,
    String className,
    Kind kind,
    FileObject sibling) throws IOException 
 public Iterable<JavaFileObject> getJavaFileObjects(Path paths) 
 public Iterable<JavaFileObject> getJavaFileObjectsFromPaths(Iterable<Path> paths) 
 public Iterable<Path> getLocation(Location location) 
 public Path getPath(FileObject fo) 
 public boolean hasLocation(Location location) 
 public String inferBinaryName(Location location,
    JavaFileObject fo) 
 public boolean isDefaultBootClassPath() 
 public boolean isSameFile(FileObject a,
    FileObject b) 
 public Iterable<JavaFileObject> list(Location location,
    String packageName,
    Set<Kind> kinds,
    boolean recurse) throws IOException 
 protected  void setContext(Context context) 
    Set the context for JavacPathFileManager.
 public  void setDefaultFileSystem(FileSystem fs) 
 public  void setLocation(Location location,
    Iterable<Path> searchPath) throws IOException