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

All Implemented Interfaces:

Direct Known Subclasses:
    JavapFileManager, JavahFileManager

This class provides access to the source, class and other files used by the compiler and related tools.

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.
Nested Class Summary:
protected enum class  JavacFileManager.SortFiles   
public interface  JavacFileManager.Archive  An archive provides a flat directory structure of a ZipFile by mapping directory names to lists of files (basenames). 
public class  JavacFileManager.MissingArchive   
Field Summary
protected  boolean mmappedIO     
protected  boolean ignoreSymbolFile     
protected  SortFiles sortFiles     
 Map<File, Archive> archives    A directory of zip files already opened. 
Fields inherited from com.sun.tools.javac.util.BaseFileManager:
log,  charset,  options,  classLoaderClass,  contentCache
 public JavacFileManager(Context context,
    boolean register,
    Charset charset) 
    Create a JavacFileManager using a given context, optionally registering it as the JavaFileManager for that context.
Method from com.sun.tools.javac.file.JavacFileManager Summary:
close,   flush,   getClassLoader,   getFileForInput,   getFileForInput,   getFileForOutput,   getFileForOutput,   getJavaFileForInput,   getJavaFileForOutput,   getJavaFileObjects,   getJavaFileObjects,   getJavaFileObjectsFromFiles,   getJavaFileObjectsFromStrings,   getLocation,   getMessage,   getRegularFile,   getRelativeName,   hasLocation,   inferBinaryName,   isDefaultBootClassPath,   isRelativeUri,   isRelativeUri,   isSameFile,   list,   openArchive,   preRegister,   setContext,   setLocation,   testName,   toArray
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.file.JavacFileManager Detail:
 public  void close() 
    Close the JavaFileManager, releasing resources.
 public  void flush() 
    Flush any output resources.
 public ClassLoader getClassLoader(Location location) 
 public JavaFileObject getFileForInput(String name) 
 public FileObject getFileForInput(Location location,
    String packageName,
    String relativeName) throws IOException 
 public JavaFileObject getFileForOutput(String classname,
    Kind kind,
    JavaFileObject sibling) 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(String names) 
 public Iterable<JavaFileObject> getJavaFileObjects(File files) 
 public Iterable<JavaFileObject> getJavaFileObjectsFromFiles(Iterable<File> files) 
 public Iterable<JavaFileObject> getJavaFileObjectsFromStrings(Iterable<String> names) 
 public Iterable<File> getLocation(Location location) 
 public static String getMessage(IOException e) 
    Get a detail message from an IOException. Most, but not all, instances of IOException provide a non-null result for getLocalizedMessage(). But some instances return null: in these cases, fallover to getMessage(), and if even that is null, return the name of the exception itself.
 public JavaFileObject getRegularFile(File file) 
 public static String getRelativeName(File file) 
    Converts a relative file name to a relative URI. This is different from File.toURI as this method does not canonicalize the file before creating the URI. Furthermore, no schema is used.
 public boolean hasLocation(Location location) 
 public String inferBinaryName(Location location,
    JavaFileObject file) 
 public boolean isDefaultBootClassPath() 
 protected static boolean isRelativeUri(URI uri) 
    Enforces the specification of a "relative" URI as used in {@linkplain #getFileForInput(Location,String,URI) getFileForInput}. This method must follow the rules defined in that method, do not make any changes without consulting the specification.
 protected static boolean isRelativeUri(String u) 
 public boolean isSameFile(FileObject a,
    FileObject b) 
 public Iterable<JavaFileObject> list(Location location,
    String packageName,
    Set<Kind> kinds,
    boolean recurse) throws IOException 
 protected Archive openArchive(File zipFilename) throws IOException 
 public static  void preRegister(Context context) 
    Register a Context.Factory to create a JavacFileManager.
 public  void setContext(Context context) 
    Set the context for JavacFileManager.
 public  void setLocation(Location location,
    Iterable<File> path) throws IOException 
 public static  void testName(String name,
    boolean isValidPackageName,
    boolean isValidClassName) 
 public static char[] toArray(CharBuffer buffer)