Assumes local file data and central directory entries are identical - unless told the opposite.
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | centralData
Extra field data in central directory - without Header-ID or length specifier. |
| private ZipShort | headerId
The Header-ID. |
| private byte[] | localData
Extra field data in local file data - without Header-ID or length specifier. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the central data if present, else return the local file dataImplements org. |
| public ZipShort | Returns: the central data lengthImplements org. |
| public ZipShort | Returns: the header idImplements org. |
| public byte[] | Returns: the local dataImplements org. |
| public ZipShort | Returns: the length of the local dataImplements org. |
| public void | parseFromCentralDirectoryData(final byte[]
the array of bytes. data, final int the source location in the data array. offset, final int the number of bytes to use in the data array. length)Implements org. |
| public void | parseFromLocalFileData(final byte[]
the array of bytes. data, final int the source location in the data array. offset, final int the number of bytes to use in the data array. length)Implements org. |
| public void | setCentralDirectoryData(final byte[]
the data to use data)Sets the extra field data in central directory. |
| public void | |
| public void | setLocalFileDataData(final byte[]
the field data to use data)Sets the extra field data in the local file data - without Header-ID or length specifier. |
| centralData | back to summary |
|---|---|
| private byte[] centralData Extra field data in central directory - without Header-ID or length specifier. | |
| headerId | back to summary |
|---|---|
| private ZipShort headerId The Header-ID. | |
| localData | back to summary |
|---|---|
| private byte[] localData Extra field data in local file data - without Header-ID or length specifier. | |
| UnrecognizedExtraField | back to summary |
|---|---|
| public UnrecognizedExtraField() | |
| getCentralDirectoryData | back to summary |
|---|---|
| public byte[] getCentralDirectoryData() Implements org. Gets the central data.
| |
| getCentralDirectoryLength | back to summary |
|---|---|
| public ZipShort getCentralDirectoryLength() Implements org. Gets the central data length. If there is no central data, get the local file data length. | |
| getHeaderId | back to summary |
|---|---|
| public ZipShort getHeaderId() Implements org. Gets the header id. | |
| getLocalFileDataData | back to summary |
|---|---|
| public byte[] getLocalFileDataData() Implements org. Gets the local data.
| |
| getLocalFileDataLength | back to summary |
|---|---|
| public ZipShort getLocalFileDataLength() Implements org. Gets the length of the local data. | |
| parseFromCentralDirectoryData | back to summary |
|---|---|
| public void parseFromCentralDirectoryData(final byte[] data, final int offset, final int length) Implements org. Doc from org. Populate data from this array as if it was in central directory data.
| |
| parseFromLocalFileData | back to summary |
|---|---|
| public void parseFromLocalFileData(final byte[] data, final int offset, final int length) Implements org. Doc from org. Populate data from this array as if it was in local file data.
| |
| setCentralDirectoryData | back to summary |
|---|---|
| public void setCentralDirectoryData(final byte[] data) Sets the extra field data in central directory.
| |
| setHeaderId | back to summary |
|---|---|
| public void setHeaderId(final ZipShort headerId) Sets the header id.
| |
| setLocalFileDataData | back to summary |
|---|---|
| public void setLocalFileDataData(final byte[] data) Sets the extra field data in the local file data - without Header-ID or length specifier.
| |