Home » openjdk-7 » com.sun.tools.javac.nio » [javadoc | source]
com.sun.tools.javac.nio
abstract class: PathFileObject [javadoc | source]
java.lang.Object
   com.sun.tools.javac.nio.PathFileObject

All Implemented Interfaces:
    JavaFileObject

Implementation of JavaFileObject using java.nio.file API.

PathFileObjects are, for the most part, straightforward wrappers around Path objects. The primary complexity is the support for "inferBinaryName". This is left as an abstract method, implemented by each of a number of different factory methods, which compute the binary name based on information available at the time the file object is created.

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.
Constructor:
 protected PathFileObject(JavacPathFileManager fileManager,
    Path path) 
Method from com.sun.tools.javac.nio.PathFileObject Summary:
createDirectoryPathFileObject,   createJarPathFileObject,   createSiblingPathFileObject,   createSimplePathFileObject,   delete,   equals,   getAccessLevel,   getCharContent,   getKind,   getLastModified,   getName,   getNestingKind,   getPath,   hashCode,   inferBinaryName,   isNameCompatible,   isSameFile,   openInputStream,   openOutputStream,   openReader,   openWriter,   removeExtension,   toBinaryName,   toBinaryName,   toString,   toUri
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.nio.PathFileObject Detail:
 static PathFileObject createDirectoryPathFileObject(JavacPathFileManager fileManager,
    Path path,
    Path dir) 
    Create a PathFileObject within a directory, such that the binary name can be inferred from the relationship to the parent directory.
 static PathFileObject createJarPathFileObject(JavacPathFileManager fileManager,
    Path path) 
    Create a PathFileObject in a file system such as a jar file, such that the binary name can be inferred from its position within the filesystem.
 static PathFileObject createSiblingPathFileObject(JavacPathFileManager fileManager,
    Path path,
    String relativePath) 
    Create a PathFileObject whose binary name can be inferred from the relative path to a sibling.
 static PathFileObject createSimplePathFileObject(JavacPathFileManager fileManager,
    Path path) 
    Create a PathFileObject whose binary name might be inferred from its position on a search path.
 public boolean delete() 
 public boolean equals(Object other) 
 public Modifier getAccessLevel() 
 public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException 
 public Kind getKind() 
 public long getLastModified() 
 public String getName() 
 public NestingKind getNestingKind() 
 Path getPath() 
    Return the Path for this object.
 public int hashCode() 
 abstract String inferBinaryName(Iterable<Path> paths)
 public boolean isNameCompatible(String simpleName,
    Kind kind) 
 public boolean isSameFile(PathFileObject other) 
 public InputStream openInputStream() throws IOException 
 public OutputStream openOutputStream() throws IOException 
 public Reader openReader(boolean ignoreEncodingErrors) throws IOException 
 public Writer openWriter() throws IOException 
 protected static String removeExtension(String fileName) 
 protected static String toBinaryName(Path relativePath) 
 protected static String toBinaryName(String relativePath,
    String sep) 
 public String toString() 
 public URI toUri()