| 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 | |
NOT_MODIFIED | final public static long NOT_MODIFIED(Code) | | |
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) | | |
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.
|
isOpen | public boolean isOpen()(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.
|
writeZipIndex | public boolean writeZipIndex()(Code) | | |
|
|