public class FastZipEntry extends java.lang.Object implements java.lang.Comparable<FastZipEntry>
LogicalZipFile.| Modifier and Type | Field and Description |
|---|---|
long |
compressedSize
The compressed size of the zip entry, in bytes.
|
java.lang.String |
entryName
The zip entry path.
|
java.lang.String |
entryNameUnversioned
The unversioned entry name (i.e. entryName with "META_INF/versions/{versionInt}/" stripped)
|
int |
fileAttributes
The file attributes for this resource, or 0 if unknown.
|
long |
uncompressedSize
The uncompressed size of the zip entry, in bytes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FastZipEntry o)
Sort in decreasing order of version number, then lexicographically increasing order of unversioned entry
path.
|
boolean |
equals(java.lang.Object obj) |
long |
getLastModifiedTimeMillis()
Get the last modified time in Epoch millis, or 0L if unknown.
|
java.lang.String |
getPath()
Get the path to this zip entry, using "!
|
Slice |
getSlice()
Lazily get zip entry slice -- this is deferred until zip entry data needs to be read, in order to avoid
randomly seeking within zipfile for every entry as the central directory is read.
|
int |
hashCode() |
java.lang.String |
toString() |
public final java.lang.String entryName
public final long compressedSize
public final long uncompressedSize
public final int fileAttributes
public final java.lang.String entryNameUnversioned
public Slice getSlice() throws java.io.IOException
java.io.IOException - If an I/O exception occurs.public java.lang.String getPath()
public long getLastModifiedTimeMillis()
public int compareTo(FastZipEntry o)
compareTo in interface java.lang.Comparable<FastZipEntry>o - the object to compare topublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object