Local-header version:
Value Size Description
----- ---- -----------
0x7875 Short tag for this extra block type ("ux")
TSize Short total data size for this block
Version 1 byte version of this extra field, currently 1
UIDSize 1 byte Size of UID field
UID Variable UID for this entry (little-endian)
GIDSize 1 byte Size of GID field
GID Variable GID for this entry (little-endian)
Central-header version:
Value Size Description
----- ---- -----------
0x7855 Short tag for this extra block type ("Ux")
TSize Short total data size for this block (0)
| Modifier and Type | Field and Description |
|---|---|
| private BigInteger | |
| pack-priv static final ZipShort | |
| private static final BigInteger | |
| private static final long | |
| private BigInteger | |
| private int | |
| private static final ZipShort |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public byte[] | Returns: get the dataImplements org. |
| public ZipShort | Returns: aZipShort for the length of the data of this extra fieldImplements org. |
| public long | |
| public ZipShort | Returns: the value for the header id for this extrafieldImplements org. |
| public byte[] | Returns: get the dataImplements org. |
| public ZipShort | Returns: aZipShort for the length of the data of this extra fieldImplements org. |
| public long | |
| public int | |
| public void | parseFromCentralDirectoryData(final byte[]
the buffer to read data from buffer, final int offset into buffer to read data offset, final int the length of data length)Implements org. |
| public void | parseFromLocalFileData(final byte[]
an array of bytes data, int the start offset offset, final int the number of bytes in the array from offset length)Implements org. |
| private void | |
| public void | |
| public void | |
| public String | Returns: A String representation of this class useful for debugging purposes.Overrides java. |
| pack-priv static byte[] | Returns: trimmed & padded byte[] array.byte[] array to trim & pad. array)Not really for external usage, but marked "package" visibility to help us JUnit it. |
| gid | back to summary |
|---|---|
| private BigInteger gid | |
| HEADER_ID | back to summary |
|---|---|
| pack-priv static final ZipShort HEADER_ID | |
| ONE_THOUSAND | back to summary |
|---|---|
| private static final BigInteger ONE_THOUSAND | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| uid | back to summary |
|---|---|
| private BigInteger uid | |
| version | back to summary |
|---|---|
| private int version | |
| ZERO | back to summary |
|---|---|
| private static final ZipShort ZERO | |
| X7875_NewUnix | back to summary |
|---|---|
| public X7875_NewUnix() Constructor for X7875_NewUnix. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException 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. 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. | |
| getCentralDirectoryData | back to summary |
|---|---|
| public byte[] getCentralDirectoryData() Implements org. The actual data to put into central directory data - without Header-ID or length specifier.
| |
| getCentralDirectoryLength | back to summary |
|---|---|
| public ZipShort getCentralDirectoryLength() Implements org. Length of the extra field in the central directory data - without Header-ID or length specifier. | |
| getGID | back to summary |
|---|---|
| public long getGID() Gets the GID as a long. GID is typically a 32 bit unsigned value on most UNIX systems, so we return a long to avoid integer overflow into the negatives in case values above and including 2^31 are being used.
| |
| getHeaderId | back to summary |
|---|---|
| public ZipShort getHeaderId() Implements org. The Header-ID. | |
| getLocalFileDataData | back to summary |
|---|---|
| public byte[] getLocalFileDataData() Implements org. The actual data to put into local file data - without Header-ID or length specifier.
| |
| getLocalFileDataLength | back to summary |
|---|---|
| public ZipShort getLocalFileDataLength() Implements org. Length of the extra field in the local file data - without Header-ID or length specifier. | |
| getUID | back to summary |
|---|---|
| public long getUID() Gets the UID as a long. UID is typically a 32 bit unsigned value on most UNIX systems, so we return a long to avoid integer overflow into the negatives in case values above and including 2^31 are being used.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parseFromCentralDirectoryData | back to summary |
|---|---|
| public void parseFromCentralDirectoryData(final byte[] buffer, final int offset, final int length) throws ZipException Implements org. Doesn't do anything since this class doesn't store anything inside the central directory.
| |
| parseFromLocalFileData | back to summary |
|---|---|
| public void parseFromLocalFileData(final byte[] data, int offset, final int length) throws ZipException Implements org. Populate data from this array as if it was in local file data.
| |
| reset | back to summary |
|---|---|
| private void reset() Reset state back to newly constructed state. Helps us make sure parse() calls always generate clean results. | |
| setGID | back to summary |
|---|---|
| public void setGID(final long l) Sets the GID.
| |
| setUID | back to summary |
|---|---|
| public void setUID(final long l) Sets the UID.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String representation of this class useful for debugging purposes. | |
| trimLeadingZeroesForceMinLength | back to summary |
|---|---|
| pack-priv static byte[] trimLeadingZeroesForceMinLength(final byte[] array) Not really for external usage, but marked "package" visibility to help us JUnit it. Trims a byte array of leading zeroes while also enforcing a minimum length, and thus it really trims AND pads at the same time.
| |