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(byte[]
the array of bytes. data, int the source location in the data array. offset, int the number of bytes to use in the data array. length)Implements org. |
| public void | parseFromLocalFileData(byte[]
the array of bytes. data, int the source location in the data array. offset, int the number of bytes to use in the data array. length)Implements org. |
| public void | |
| public void | |
| public void | setLocalFileDataData(byte[]
the field data to use data)Set 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. Get the central data.
| |
| getCentralDirectoryLength | back to summary |
|---|---|
| public ZipShort getCentralDirectoryLength() Implements org. Get 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. Get the header id.
| |
| getLocalFileDataData | back to summary |
|---|---|
| public byte[] getLocalFileDataData() Implements org. Get the local data.
| |
| getLocalFileDataLength | back to summary |
|---|---|
| public ZipShort getLocalFileDataLength() Implements org. Get the length of the local data.
| |
| parseFromCentralDirectoryData | back to summary |
|---|---|
| public void parseFromCentralDirectoryData(byte[] data, int offset, 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(byte[] data, int offset, 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(byte[] data) Set the extra field data in central directory.
| |
| setHeaderId | back to summary |
|---|---|
| public void setHeaderId(ZipShort headerId) Set the header id.
| |
| setLocalFileDataData | back to summary |
|---|---|
| public void setLocalFileDataData(byte[] data) Set the extra field data in the local file data - without Header-ID or length specifier.
| |