Java Doc for ZipFileIndex.java in  » 6.0-JDK-Modules-sun » javac-compiler » com » sun » tools » javac » zip » 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.zip 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.javac.zip.ZipFileIndex

ZipFileIndex
public class ZipFileIndex (Code)
This class implements building of index of a zip archive and access to it's context. It also uses prebuild index if available. It supports invocations where it will serialize an optimized zip index file to disk. In oreder to use secondary index file make sure the option "usezipindex" is in the Options object, when JavacFileManager is invoked. (You can pass "-XDusezipindex" on the command line. Location where to look for/generate optimized zip index files can be provided using "-XDcachezipindexdir=". If this flag is not provided, the dfault location is the value of the "java.io.tmpdir" system property. If key "-XDwritezipindexfiles" is specified, there will be new optimized index file created for each archive, used by the compiler for compilation, at location, specified by "cachezipindexdir" option. If nonBatchMode option is specified (-XDnonBatchMode) the compiler will use timestamp checking to reindex the zip files if it is needed. In batch mode the timestamps are not checked and the compiler uses the cached indexes.

Inner Class :static class DirectoryEntry

Field Summary
final public static  longNOT_MODIFIED
    


Method Summary
public static  voidclearCache()
    
public static  voidclearCache(long timeNotUsed)
    
public  voidclose()
    
public  booleancontains(String path)
     Tests if a specific path exists in the zip.
protected  voidfinalize()
    
public  List<String>getAllDirectories(String path)
    
public  Set<String>getAllDirectories()
    
public static  ZipFileIndexgetExistingZipIndex(File zipFile)
    
public  com.sun.tools.javac.util.List<String>getFiles(String path)
     Returns a javac List of filenames within an absolute path in the ZipFileIndex.
public  longgetLastModified(String path)
    
public  FilegetZipFile()
    
public static  ZipFileIndexgetZipFileIndex(File zipFile, int symbolFilePrefixLen, boolean useCache, String cacheLocation, boolean writeIndex)
    
public static  List<ZipFileIndex>getZipFileIndexes()
    
public static  List<ZipFileIndex>getZipFileIndexes(boolean openedOnly)
     Returns a list of all ZipFileIndex entries
Parameters:
  openedOnly - If true it returns a list of only opened ZipFileIndex entries, otherwiseall ZipFileEntry(s) are included into the list.
public  longgetZipFileLastModified()
     Returns the last modified timestamp of a zip file.
public  ZipFileIndexEntrygetZipIndexEntry(String path)
     Returns the ZipFileIndexEntry for an absolute path, if there is one.
public  booleanisDirectory(String path)
    
public  booleanisOpen()
    
public  intlength(String path)
    
public  byte[]read(String path)
    
public  byte[]read(ZipFileIndexEntry entry)
    
public  intread(String path, byte[] buffer)
    
public  intread(ZipFileIndexEntry entry, byte[] buffer)
    
public static  voidremoveFromCache(File file)
    
public static  voidsetOpenedIndexes(List<ZipFileIndex> indexes)
     Sets already opened list of ZipFileIndexes from an outside client of the compiler.
public  StringtoString()
    
public  booleanwriteZipIndex()
    

Field Detail
NOT_MODIFIED
final public static long NOT_MODIFIED(Code)





Method Detail
clearCache
public static void clearCache()(Code)



clearCache
public static void clearCache(long timeNotUsed)(Code)



close
public void close()(Code)



contains
public boolean contains(String path)(Code)
Tests if a specific path exists in the zip. This method will return true for file entries and directories.
Parameters:
  path - A path within the zip. True if the path is a file or dir, false otherwise.



finalize
protected void finalize()(Code)



getAllDirectories
public List<String> getAllDirectories(String path)(Code)



getAllDirectories
public Set<String> getAllDirectories()(Code)



getExistingZipIndex
public static ZipFileIndex getExistingZipIndex(File zipFile)(Code)



getFiles
public com.sun.tools.javac.util.List<String> getFiles(String path)(Code)
Returns a javac List of filenames within an absolute path in the ZipFileIndex.



getLastModified
public long getLastModified(String path) throws IOException(Code)



getZipFile
public File getZipFile()(Code)



getZipFileIndex
public static ZipFileIndex getZipFileIndex(File zipFile, int symbolFilePrefixLen, boolean useCache, String cacheLocation, boolean writeIndex) throws IOException(Code)



getZipFileIndexes
public static List<ZipFileIndex> getZipFileIndexes()(Code)
Returns a list of all ZipFileIndex entries A list of ZipFileIndex entries, or an empty list



getZipFileIndexes
public static List<ZipFileIndex> getZipFileIndexes(boolean openedOnly)(Code)
Returns a list of all ZipFileIndex entries
Parameters:
  openedOnly - If true it returns a list of only opened ZipFileIndex entries, otherwiseall ZipFileEntry(s) are included into the list. A list of ZipFileIndex entries, or an empty list



getZipFileLastModified
public long getZipFileLastModified()(Code)
Returns the last modified timestamp of a zip file. long



getZipIndexEntry
public ZipFileIndexEntry getZipIndexEntry(String path)(Code)
Returns the ZipFileIndexEntry for an absolute path, if there is one.



isDirectory
public boolean isDirectory(String path)(Code)



isOpen
public boolean isOpen()(Code)



length
public int length(String path) throws IOException(Code)



read
public byte[] read(String path) throws IOException(Code)



read
public byte[] read(ZipFileIndexEntry entry) throws IOException(Code)



read
public int read(String path, byte[] buffer) throws IOException(Code)



read
public int read(ZipFileIndexEntry entry, byte[] buffer) throws IOException(Code)



removeFromCache
public static void removeFromCache(File file)(Code)



setOpenedIndexes
public static void setOpenedIndexes(List<ZipFileIndex> indexes) throws IllegalStateException(Code)
Sets already opened list of ZipFileIndexes from an outside client of the compiler. This functionality should be used in a non-batch clients of the compiler.



toString
public String toString()(Code)



writeZipIndex
public boolean writeZipIndex()(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.