| Modifier and Type | Field and Description |
|---|---|
| private final ZipFileSlice | parentZipFileSlice
The parent slice, or null if this is the toplevel slice (the whole zipfile). |
| private final String | pathWithinParentZipFileSlice
For the toplevel zipfile slice, the zipfile path; For nested slices, the name/path of the zipfile entry. |
| protected final PhysicalZipFile | physicalZipFile
The underlying physical zipfile. |
| public Slice |
| Access | Constructor and Description |
|---|---|
| pack-priv | ZipFileSlice(final PhysicalZipFile
the physical zipfile physicalZipFile)Create a ZipFileSlice that wraps a toplevel |
| pack-priv | ZipFileSlice(final PhysicalZipFile
a physical zipfile that has been extracted to RAM physicalZipFile, final FastZipEntry the zip entry zipEntry)Create a ZipFileSlice that wraps a |
| pack-priv | ZipFileSlice(final FastZipEntry
the zip entry zipEntry)Create a ZipFileSlice that wraps a single stored (not deflated) |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | appendPath(final StringBuilder
the buf to append the path to buf)Recursively append the path in top down ancestral order. |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public ZipFileSlice | Returns: the parent ZipFileslice, or null if this is a toplevel slice.Get the parent ZipFileslice, or return null if this is a toplevel slice (i.e. if this slice wraps an entire physical zipfile). |
| public String | Returns: the path of this zipfile slice.Get the path of this zipfile slice, e.g. "/path/to/jarfile.jar!/nestedjar1.jar". |
| public String | Returns: the name of the slice.Get the name of the slice (either the entry name/path within the parent zipfile slice, or the path of the physical zipfile if this slice is a toplevel slice (i.e. if this slice wraps an entire physical zipfile). |
| public File | Returns: the physicalFile that this ZipFileSlice is a slice of, or null if this file was downloaded
from a URL directly to RAM.Get the physical |
| public int | |
| public boolean | Returns: true if this zipfile slice and all of its parent slices are accepted and not rejected in the jarfile accept/reject criteria.the jar accept/reject criteria jarAcceptRejectCheck whether this zipfile slice and all of its parent slices are accepted and not rejected in the jarfile accept/reject criteria. |
| public String |
| parentZipFileSlice | back to summary |
|---|---|
| private final ZipFileSlice parentZipFileSlice The parent slice, or null if this is the toplevel slice (the whole zipfile). | |
| pathWithinParentZipFileSlice | back to summary |
|---|---|
| private final String pathWithinParentZipFileSlice For the toplevel zipfile slice, the zipfile path; For nested slices, the name/path of the zipfile entry. | |
| physicalZipFile | back to summary |
|---|---|
| protected final PhysicalZipFile physicalZipFile The underlying physical zipfile. | |
| slice | back to summary |
|---|---|
| public Slice slice The | |
| ZipFileSlice | back to summary |
|---|---|
| pack-priv ZipFileSlice(final PhysicalZipFile physicalZipFile) Create a ZipFileSlice that wraps a toplevel
| |
| ZipFileSlice | back to summary |
|---|---|
| pack-priv ZipFileSlice(final PhysicalZipFile physicalZipFile, final FastZipEntry zipEntry) Create a ZipFileSlice that wraps a
| |
| ZipFileSlice | back to summary |
|---|---|
| pack-priv ZipFileSlice(final FastZipEntry zipEntry) throws IOException, InterruptedException Create a ZipFileSlice that wraps a single stored (not deflated)
| |
| ZipFileSlice | back to summary |
|---|---|
| pack-priv ZipFileSlice(final ZipFileSlice other) Clone constructor.
| |
| appendPath | back to summary |
|---|---|
| private void appendPath(final StringBuilder buf) Recursively append the path in top down ancestral order.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) 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. | |
| getParentZipFileSlice | back to summary |
|---|---|
| public ZipFileSlice getParentZipFileSlice() Get the parent ZipFileslice, or return null if this is a toplevel slice (i.e. if this slice wraps an entire physical zipfile).
| |
| getPath | back to summary |
|---|---|
| public String getPath() Get the path of this zipfile slice, e.g. "/path/to/jarfile.jar!/nestedjar1.jar".
| |
| getPathWithinParentZipFileSlice | back to summary |
|---|---|
| public String getPathWithinParentZipFileSlice() Get the name of the slice (either the entry name/path within the parent zipfile slice, or the path of the physical zipfile if this slice is a toplevel slice (i.e. if this slice wraps an entire physical zipfile).
| |
| getPhysicalFile | back to summary |
|---|---|
| public File getPhysicalFile() Get the physical | |
| 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
| |
| isAcceptedAndNotRejected | back to summary |
|---|---|
| public boolean isAcceptedAndNotRejected(final AcceptReject. Check whether this zipfile slice and all of its parent slices are accepted and not rejected in the jarfile accept/reject criteria.
| |
| 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- | |