| Modifier and Type | Field and Description |
|---|---|
| public static final ZipLong | AED_SIG
Archive extra data record signature. |
| public static final ZipLong | CFH_SIG
Central File Header Signature |
| public static final ZipLong | DD_SIG
Data Descriptor signature. |
| public static final ZipLong | LFH_SIG
Local File Header Signature |
| private static final long | |
| public static final ZipLong | SINGLE_SEGMENT_SPLIT_MARKER
Marks ZIP archives that were supposed to be split or spanned but only needed a single segment in then end (so are actually neither split nor spanned). |
| private final long | |
| pack-priv static final ZipLong | ZIP64_MAGIC
Value stored in size and similar fields if ZIP64 extensions are used. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ZipLong(final byte[]
the bytes to store as a ZipLong bytes, final int the offset to start offset)Creates instance from the four bytes starting at offset. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | Returns: true if the objects are equalan object to compare o)Overrides java. |
| public static byte[] | Returns: value as four bytes in big-endian byte orderthe value to convert value)Gets value as four bytes in big-endian byte order. |
| public byte[] | Returns: value as four bytes in big-endian orderGets value as four bytes in big-endian byte order. |
| public int | |
| public static long | Returns: the corresponding Java long valuethe array of bytes bytes)Helper method to get the value as a Java long from a four-byte array |
| public static long | Returns: the corresponding Java long valuethe array of bytes bytes, final int the offset to start offset)Helper method to get the value as a Java long from four bytes starting at given array offset |
| public long | |
| public int | Returns: the value stored in the ZipLongOverrides java. |
| public static void | putLong(final long
the Java long to convert to bytes value, final byte[] the output buffer buf, final int The offset within the output buffer of the first byte to be written. must be non-negative and no larger than offset)buf.length-4put the value as four bytes in big-endian byte order. |
| public void | |
| public String |
| AED_SIG | back to summary |
|---|---|
| public static final ZipLong AED_SIG Archive extra data record signature.
| |
| CFH_SIG | back to summary |
|---|---|
| public static final ZipLong CFH_SIG Central File Header Signature | |
| DD_SIG | back to summary |
|---|---|
| public static final ZipLong DD_SIG Data Descriptor signature. Actually, PKWARE uses this as marker for split/spanned archives and other archivers have started to use it as Data Descriptor signature (as well).
| |
| LFH_SIG | back to summary |
|---|---|
| public static final ZipLong LFH_SIG Local File Header Signature | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SINGLE_SEGMENT_SPLIT_MARKER | back to summary |
|---|---|
| public static final ZipLong SINGLE_SEGMENT_SPLIT_MARKER Marks ZIP archives that were supposed to be split or spanned but only needed a single segment in then end (so are actually neither split nor spanned). This is the "PK00" prefix found in some archives.
| |
| value | back to summary |
|---|---|
| private final long value | |
| ZIP64_MAGIC | back to summary |
|---|---|
| pack-priv static final ZipLong ZIP64_MAGIC Value stored in size and similar fields if ZIP64 extensions are used.
| |
| ZipLong | back to summary |
|---|---|
| public ZipLong(final byte[] bytes) Constructs a new instance from bytes.
| |
| ZipLong | back to summary |
|---|---|
| public ZipLong(final byte[] bytes, final int offset) Creates instance from the four bytes starting at offset.
| |
| ZipLong | back to summary |
|---|---|
| public ZipLong(final int value) create instance from a Java int.
| |
| ZipLong | back to summary |
|---|---|
| public ZipLong(final long value) Creates instance from a number.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Override to make two instances with same value equal. | |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(final long value) Gets value as four bytes in big-endian byte order.
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Gets value as four bytes in big-endian byte order.
| |
| getIntValue | back to summary |
|---|---|
| public int getIntValue() Gets value as a (signed) Java int
| |
| getValue | back to summary |
|---|---|
| public static long getValue(final byte[] bytes) Helper method to get the value as a Java long from a four-byte array
| |
| getValue | back to summary |
|---|---|
| public static long getValue(final byte[] bytes, final int offset) Helper method to get the value as a Java long from four bytes starting at given array offset
| |
| getValue | back to summary |
|---|---|
| public long getValue() Gets value as Java long.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Override to make two instances with same value equal.
| |
| putLong | back to summary |
|---|---|
| public static void putLong(final long value, final byte[] buf, final int offset) put the value as four bytes in big-endian byte order.
| |
| putLong | back to summary |
|---|---|
| public void putLong(final byte[] buf, final int offset) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |