Java Doc for JavacFileManager.java in  » 6.0-JDK-Modules-sun » javac-compiler » com » sun » tools » javac » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules sun » javac compiler » com.sun.tools.javac.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.javac.util.JavacFileManager

JavacFileManager
public class JavacFileManager implements StandardJavaFileManager(Code)
This class provides access to the source, class and other files used by the compiler and related tools.

Inner Class :public interface Archive
Inner Class :public class ZipArchive implements Archive
Inner Class :public class SymbolArchive extends ZipArchive
Inner Class :public class MissingArchive implements Archive
Inner Class :public class ZipFileObject extends BaseFileObject
Inner Class :public class ZipFileIndexFileObject extends BaseFileObject
Inner Class :public class ZipFileIndexArchive implements Archive

Field Summary
 Map<File, Archive>archives
     A directory of zip files already opened.
protected  Charsetcharset
     User provided charset (through javax.tools).
protected  booleanignoreSymbolFile
    
protected  Loglog
     The log to be used for error reporting.
protected  booleanmmappedIO
    
 booleanuseZipFileIndex
    

Constructor Summary
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 Summary
public  voidclose()
     Close the JavaFileManager, releasing resources.
public  voidflush()
     Flush any output resources.
public  ClassLoadergetClassLoader(Location location)
    
protected  StringgetEncodingName()
    
public  JavaFileObjectgetFileForInput(String name)
    
public  FileObjectgetFileForInput(Location location, String packageName, String relativeName)
    
public  JavaFileObjectgetFileForOutput(String classname, JavaFileObject.Kind kind, JavaFileObject sibling)
    
public  FileObjectgetFileForOutput(Location location, String packageName, String relativeName, FileObject sibling)
    
public  JavaFileObjectgetJavaFileForInput(Location location, String className, JavaFileObject.Kind kind)
    
public  JavaFileObjectgetJavaFileForOutput(Location location, String className, JavaFileObject.Kind kind, FileObject sibling)
    
public  Iterable<? extends JavaFileObject>getJavaFileObjects(String... names)
    
public  Iterable<? extends JavaFileObject>getJavaFileObjects(File... files)
    
public  Iterable<? extends JavaFileObject>getJavaFileObjectsFromFiles(Iterable<? extends File> files)
    
public  Iterable<? extends JavaFileObject>getJavaFileObjectsFromStrings(Iterable<String> names)
    
protected static  StringgetJavacBaseFileName(FileObject file)
    
protected static  StringgetJavacFileName(FileObject file)
    
protected  JavaFileObject.KindgetKind(String extension)
    
public  Iterable<? extends File>getLocation(Location location)
    
public  JavaFileObjectgetRegularFile(File file)
    
public static  StringgetRelativeName(File file)
     Converts a relative file name to a relative URI.
protected  SourcegetSource()
    
public  booleanhandleOption(String current, Iterator<String> remaining)
    
public  booleanhasLocation(Location location)
    
public  StringinferBinaryName(Location location, JavaFileObject file)
    
protected static  booleanisRelativeUri(URI uri)
     Enforces the specification of a "relative" URI as used in .
public  booleanisSameFile(FileObject a, FileObject b)
    
public  intisSupportedOption(String option)
    
public  Iterable<JavaFileObject>list(Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse)
    
protected  ArchiveopenArchive(File zipFileName)
     Open a new zip file directory.
public static  voidpreRegister(Context context)
     Register a Context.Factory to create a JavacFileManager.
public  voidsetContext(Context context)
     Set the context for JavacFileManager.
public  voidsetLocation(Location location, Iterable<? extends File> path)
    
public static  voidtestName(String name, boolean isValidPackageName, boolean isValidClassName)
    
public static  char[]toArray(CharBuffer buffer)
    

Field Detail
archives
Map<File, Archive> archives(Code)
A directory of zip files already opened.



charset
protected Charset charset(Code)
User provided charset (through javax.tools).



ignoreSymbolFile
protected boolean ignoreSymbolFile(Code)



log
protected Log log(Code)
The log to be used for error reporting.



mmappedIO
protected boolean mmappedIO(Code)



useZipFileIndex
boolean useZipFileIndex(Code)




Constructor Detail
JavacFileManager
public JavacFileManager(Context context, boolean register, Charset charset)(Code)
Create a JavacFileManager using a given context, optionally registering it as the JavaFileManager for that context.




Method Detail
close
public void close()(Code)
Close the JavaFileManager, releasing resources.



flush
public void flush()(Code)
Flush any output resources.



getClassLoader
public ClassLoader getClassLoader(Location location)(Code)



getEncodingName
protected String getEncodingName()(Code)



getFileForInput
public JavaFileObject getFileForInput(String name)(Code)



getFileForInput
public FileObject getFileForInput(Location location, String packageName, String relativeName) throws IOException(Code)



getFileForOutput
public JavaFileObject getFileForOutput(String classname, JavaFileObject.Kind kind, JavaFileObject sibling) throws IOException(Code)



getFileForOutput
public FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) throws IOException(Code)



getJavaFileForInput
public JavaFileObject getJavaFileForInput(Location location, String className, JavaFileObject.Kind kind) throws IOException(Code)



getJavaFileForOutput
public JavaFileObject getJavaFileForOutput(Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException(Code)



getJavaFileObjects
public Iterable<? extends JavaFileObject> getJavaFileObjects(String... names)(Code)



getJavaFileObjects
public Iterable<? extends JavaFileObject> getJavaFileObjects(File... files)(Code)



getJavaFileObjectsFromFiles
public Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(Iterable<? extends File> files)(Code)



getJavaFileObjectsFromStrings
public Iterable<? extends JavaFileObject> getJavaFileObjectsFromStrings(Iterable<String> names)(Code)



getJavacBaseFileName
protected static String getJavacBaseFileName(FileObject file)(Code)



getJavacFileName
protected static String getJavacFileName(FileObject file)(Code)



getKind
protected JavaFileObject.Kind getKind(String extension)(Code)



getLocation
public Iterable<? extends File> getLocation(Location location)(Code)



getRegularFile
public JavaFileObject getRegularFile(File file)(Code)



getRelativeName
public static String getRelativeName(File file)(Code)
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.
Parameters:
  file - a relative file name a relative URI
throws:
  IllegalArgumentException - if the file name is notrelative according to the definition given in javax.tools.JavaFileManager.getFileForInput



getSource
protected Source getSource()(Code)



handleOption
public boolean handleOption(String current, Iterator<String> remaining)(Code)



hasLocation
public boolean hasLocation(Location location)(Code)



inferBinaryName
public String inferBinaryName(Location location, JavaFileObject file)(Code)



isRelativeUri
protected static boolean isRelativeUri(URI uri)(Code)
Enforces the specification of a "relative" URI as used in . This method must follow the rules defined in that method, do not make any changes without consulting the specification.



isSameFile
public boolean isSameFile(FileObject a, FileObject b)(Code)



isSupportedOption
public int isSupportedOption(String option)(Code)



list
public Iterable<JavaFileObject> list(Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException(Code)



openArchive
protected Archive openArchive(File zipFileName) throws IOException(Code)
Open a new zip file directory.



preRegister
public static void preRegister(Context context)(Code)
Register a Context.Factory to create a JavacFileManager.



setContext
public void setContext(Context context)(Code)
Set the context for JavacFileManager.



setLocation
public void setLocation(Location location, Iterable<? extends File> path) throws IOException(Code)



testName
public static void testName(String name, boolean isValidPackageName, boolean isValidClassName)(Code)



toArray
public static char[] toArray(CharBuffer buffer)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.