public class ZipFileIndex extends Object
-XDcachezipindexdir=<directory>
". If this flag is not
provided, the default location is the value of the "java.io.tmpdir" system
property.
If "-XDwritezipindexfiles" is specified, there will be new optimized index
file created for each archive, used by the compiler for compilation, at the
location specified by the "cachezipindexdir" option.
If system property nonBatchMode option is specified 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.
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.
Modifier and Type | Field and Description |
---|---|
static long |
NOT_MODIFIED |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
contains(RelativePath path)
Tests if a specific path exists in the zip.
|
protected void |
finalize() |
Set<RelativePath.RelativeDirectory> |
getAllDirectories() |
List<String> |
getDirectories(RelativePath.RelativeDirectory path) |
List<String> |
getFiles(RelativePath.RelativeDirectory path)
Returns a javac List of filenames within a directory in the ZipFileIndex.
|
long |
getLastModified(RelativePath.RelativeFile path) |
File |
getZipFile() |
long |
getZipFileLastModified()
Returns the last modified timestamp of a zip file.
|
boolean |
isDirectory(RelativePath path) |
boolean |
isOpen() |
int |
length(RelativePath.RelativeFile path) |
byte[] |
read(RelativePath.RelativeFile path) |
int |
read(RelativePath.RelativeFile path,
byte[] buffer) |
String |
toString() |
boolean |
writeZipIndex() |
public static final long NOT_MODIFIED
public boolean isOpen()
protected void finalize() throws Throwable
public void close()
public List<String> getFiles(RelativePath.RelativeDirectory path)
public List<String> getDirectories(RelativePath.RelativeDirectory path)
public Set<RelativePath.RelativeDirectory> getAllDirectories()
public boolean contains(RelativePath path)
path
- A path within the zip.public boolean isDirectory(RelativePath path) throws IOException
IOException
public long getLastModified(RelativePath.RelativeFile path) throws IOException
IOException
public int length(RelativePath.RelativeFile path) throws IOException
IOException
public byte[] read(RelativePath.RelativeFile path) throws IOException
IOException
public int read(RelativePath.RelativeFile path, byte[] buffer) throws IOException
IOException
public long getZipFileLastModified() throws IOException
IOException
public boolean writeZipIndex()
public File getZipFile()
Copyright © 2017 earcam. All rights reserved.