| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| 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 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 | |
| public | ZipLong(byte[]
the bytes to store as a ZipLong bytes, int the offset to start offset)Create instance from the four bytes starting at offset. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | Returns: true if the objects are equalan object to compare o)Overrides java. |
| public byte[] | Returns: value as four bytes in big endian orderGet value as four bytes in big endian byte order. |
| public static byte[] | Returns: value as four bytes in big endian byte orderthe value to convert value)Get value as four bytes in big endian byte order. |
| public long | |
| public static long | Returns: the corresponding Java long valuethe array of bytes bytes, 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 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 int | Returns: the value stored in the ZipLongOverrides java. |
| public static void | putLong(long
the Java long to convert to bytes value, byte[] the output buffer buf, 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 |
| BYTE_1 | back to summary |
|---|---|
| private static final int BYTE_1 | |
| BYTE_1_MASK | back to summary |
|---|---|
| private static final int BYTE_1_MASK | |
| BYTE_1_SHIFT | back to summary |
|---|---|
| private static final int BYTE_1_SHIFT | |
| BYTE_2 | back to summary |
|---|---|
| private static final int BYTE_2 | |
| BYTE_2_MASK | back to summary |
|---|---|
| private static final int BYTE_2_MASK | |
| BYTE_2_SHIFT | back to summary |
|---|---|
| private static final int BYTE_2_SHIFT | |
| BYTE_3 | back to summary |
|---|---|
| private static final int BYTE_3 | |
| BYTE_3_MASK | back to summary |
|---|---|
| private static final long BYTE_3_MASK | |
| BYTE_3_SHIFT | back to summary |
|---|---|
| private static final int BYTE_3_SHIFT | |
| 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 | |
| LFH_SIG | back to summary |
|---|---|
| public static final ZipLong LFH_SIG Local File Header Signature | |
| 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(long value) Create instance from a number.
| |
| ZipLong | back to summary |
|---|---|
| public ZipLong(byte[] bytes) Create instance from bytes.
| |
| ZipLong | back to summary |
|---|---|
| public ZipLong(byte[] bytes, int offset) Create instance from the four bytes starting at offset.
| |
| 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(Object o) Overrides java. Override to make two instances with same value equal. | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Get value as four bytes in big endian byte order.
| |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(long value) Get value as four bytes in big endian byte order.
| |
| getValue | back to summary |
|---|---|
| public long getValue() Get value as Java long.
| |
| getValue | back to summary |
|---|---|
| public static long getValue(byte[] bytes, 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 static long getValue(byte[] bytes) Helper method to get the value as a Java long from a four-byte array
| |
| 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(long value, byte[] buf, int offset) put the value as four bytes in big endian byte order.
| |
| putLong | back to summary |
|---|---|
| public void putLong(byte[] buf, int offset) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |