LogicalZipFile.
| Modifier and Type | Field and Description |
|---|---|
| public final long | compressedSize
The compressed size of the zip entry, in bytes. |
| public final String | entryName
The zip entry path. |
| public final String | entryNameUnversioned
The unversioned entry name (i.e. entryName with "META_INF/versions/{versionInt}/" stripped) |
| public final int | fileAttributes
The file attributes for this resource, or 0 if unknown. |
| pack-priv final boolean | isDeflated
True if the zip entry is deflated; false if the zip entry is stored. |
| private final int | lastModifiedDateMSDOS
The last modified date in MSDOS format, if |
| private long | lastModifiedTimeMillis
The last modified millis since the epoch, or 0L if it is unknown |
| private final int | lastModifiedTimeMSDOS
The last modified time in MSDOS format, if |
| private final long | locHeaderPos
The offset of the entry's local header, as an offset relative to the parent logical zipfile. |
| pack-priv final LogicalZipFile | parentLogicalZipFile
The parent logical zipfile. |
| private Slice | |
| public final long | uncompressedSize
The uncompressed size of the zip entry, in bytes. |
| pack-priv final int | version
The version code (>= 9), or 8 for the base layer or a non-versioned jar (whether JDK 7 or 8 compatible). |
| Access | Constructor and Description |
|---|---|
| pack-priv | FastZipEntry(final LogicalZipFile
The parent logical zipfile containing this entry. parentLogicalZipFile, final long The offset of the LOC header for this entry within the parent logical zipfile. locHeaderPos, final String The name of the entry. entryName, final boolean True if the entry is deflated; false if the entry is stored. isDeflated, final long The compressed size of the entry. compressedSize, final long The uncompressed size of the entry. uncompressedSize, final long The last modified date/time in millis since the epoch, or 0L if unknown (in which case, the MSDOS
time and date fields will be provided). lastModifiedTimeMillis, final int The last modified date, in MSDOS format, if lastModifiedMillis is 0L. lastModifiedTimeMSDOS, final int The last modified date, in MSDOS format, if lastModifiedMillis is 0L. lastModifiedDateMSDOS, final int The POSIX file attribute bits from the zip entry. fileAttributes, final boolean enableMultiReleaseVersions)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the result of comparisonthe object to compare to o)Implements java. Sort in decreasing order of version number, then lexicographically increasing order of unversioned entry path. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | Returns: the last modified time in Epoch millis.Get the last modified time in Epoch millis, or 0L if unknown. |
| public String | Returns: the path of the entryGet the path to this zip entry, using "!/" as a separator between the parent logical zipfile and the entry name. |
| public Slice | Returns: the offset within the physical zip file of the entry's start offset.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. |
| public int | |
| public String |
| compressedSize | back to summary |
|---|---|
| public final long compressedSize The compressed size of the zip entry, in bytes. | |
| entryName | back to summary |
|---|---|
| public final String entryName The zip entry path. | |
| entryNameUnversioned | back to summary |
|---|---|
| public final String entryNameUnversioned The unversioned entry name (i.e. entryName with "META_INF/versions/{versionInt}/" stripped) | |
| fileAttributes | back to summary |
|---|---|
| public final int fileAttributes The file attributes for this resource, or 0 if unknown. | |
| isDeflated | back to summary |
|---|---|
| pack-priv final boolean isDeflated True if the zip entry is deflated; false if the zip entry is stored. | |
| lastModifiedDateMSDOS | back to summary |
|---|---|
| private final int lastModifiedDateMSDOS The last modified date in MSDOS format, if | |
| lastModifiedTimeMillis | back to summary |
|---|---|
| private long lastModifiedTimeMillis The last modified millis since the epoch, or 0L if it is unknown | |
| lastModifiedTimeMSDOS | back to summary |
|---|---|
| private final int lastModifiedTimeMSDOS The last modified time in MSDOS format, if | |
| locHeaderPos | back to summary |
|---|---|
| private final long locHeaderPos The offset of the entry's local header, as an offset relative to the parent logical zipfile. | |
| parentLogicalZipFile | back to summary |
|---|---|
| pack-priv final LogicalZipFile parentLogicalZipFile The parent logical zipfile. | |
| slice | back to summary |
|---|---|
| private Slice slice The | |
| uncompressedSize | back to summary |
|---|---|
| public final long uncompressedSize The uncompressed size of the zip entry, in bytes. | |
| version | back to summary |
|---|---|
| pack-priv final int version The version code (>= 9), or 8 for the base layer or a non-versioned jar (whether JDK 7 or 8 compatible). | |
| FastZipEntry | back to summary |
|---|---|
| pack-priv FastZipEntry(final LogicalZipFile parentLogicalZipFile, final long locHeaderPos, final String entryName, final boolean isDeflated, final long compressedSize, final long uncompressedSize, final long lastModifiedTimeMillis, final int lastModifiedTimeMSDOS, final int lastModifiedDateMSDOS, final int fileAttributes, final boolean enableMultiReleaseVersions) Constructor.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(final FastZipEntry o) Implements java. Sort in decreasing order of version number, then lexicographically increasing order of unversioned entry path.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getLastModifiedTimeMillis | back to summary |
|---|---|
| public long getLastModifiedTimeMillis() Get the last modified time in Epoch millis, or 0L if unknown.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Get the path to this zip entry, using "!/" as a separator between the parent logical zipfile and the entry name.
| |
| getSlice | back to summary |
|---|---|
| public Slice getSlice() throws IOException 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.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |