| Modifier and Type | Field and Description |
|---|---|
| public byte[] | arr
The wrapped byte array. |
| Access | Constructor and Description |
|---|---|
| private | ArraySlice(final ArraySlice
the parent slice parentSlice, final long the offset of the sub-slice within the parent slice offset, final long the length of the sub-slice length, final boolean true if this is a deflated zip entry isDeflatedZipEntry, final long the uncompressed size of a deflated zip entry, or -1 if unknown, or 0 of this is not a deflated
zip entry. inflatedLengthHint, final NestedJarHandler the nested jar handler nestedJarHandler)Constructor for treating a range of an array as a slice. |
| public | ArraySlice(final byte[]
the array containing the slice. arr, final boolean true if this is a deflated zip entry isDeflatedZipEntry, final long the uncompressed size of a deflated zip entry, or -1 if unknown, or 0 of this is not a deflated
zip entry. inflatedLengthHint, final NestedJarHandler the nested jar handler nestedJarHandler)Constructor for treating a whole array as a slice. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides nonapi. Indicates whether some other object is "equal to" this one. |
| public int | hashCode()
Overrides nonapi. Returns a hash code value for this object. |
| public byte[] | Returns: the byte[]Implements abstract nonapi. Load the slice as a byte array. |
| public RandomAccessReader | Returns: the random access readerImplements abstract nonapi. Return a new random access reader. |
| public Slice | Returns: the slicethe offset relative to the start of this slice to use as the start of the sub-slice. offset, final long the length of the sub-slice. length, final boolean the is deflated zip entry isDeflatedZipEntry, final long the uncompressed size of a deflated zip entry, or -1 if unknown, or 0 of this is not a deflated
zip entry. inflatedLengthHint)Implements abstract nonapi. Slice this slice to form a sub-slice. |
| arr | back to summary |
|---|---|
| public byte[] arr The wrapped byte array. | |
| ArraySlice | back to summary |
|---|---|
| private ArraySlice(final ArraySlice parentSlice, final long offset, final long length, final boolean isDeflatedZipEntry, final long inflatedLengthHint, final NestedJarHandler nestedJarHandler) Constructor for treating a range of an array as a slice.
| |
| ArraySlice | back to summary |
|---|---|
| public ArraySlice(final byte[] arr, final boolean isDeflatedZipEntry, final long inflatedLengthHint, final NestedJarHandler nestedJarHandler) Constructor for treating a whole array as a slice.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides nonapi. 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. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides nonapi. 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
| |
| load | back to summary |
|---|---|
| public byte[] load() throws IOException Implements abstract nonapi. Load the slice as a byte array.
| |
| randomAccessReader | back to summary |
|---|---|
| public RandomAccessReader randomAccessReader() Implements abstract nonapi. Return a new random access reader.
| |
| slice | back to summary |
|---|---|
| public Slice slice(final long offset, final long length, final boolean isDeflatedZipEntry, final long inflatedLengthHint) Implements abstract nonapi. Slice this slice to form a sub-slice.
| |