Extra fields usually appear twice per file, once in the local
file data and once in the central directory. Usually they are the
same, but they don't have to be. java. will
only use the local file data in both places.
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the dataThe actual data to put into central directory - without Header-ID or length specifier. |
| public ZipShort | Returns: the length of the field in the central directoryLength of the extra field in the central directory - without Header-ID or length specifier. |
| public ZipShort | |
| public byte[] | Returns: the dataThe actual data to put into local file data - without Header-ID or length specifier. |
| public ZipShort | Returns: the length of the field in the local file dataLength of the extra field in the local file data - without Header-ID or length specifier. |
| public void | parseFromLocalFileData(byte[]
an array of bytes data, int the start offset offset, int the number of bytes in the array from offset length)Populate data from this array as if it was in local file data. |
| getCentralDirectoryData | back to summary |
|---|---|
| public byte[] getCentralDirectoryData() The actual data to put into central directory - without Header-ID or length specifier.
| |
| getCentralDirectoryLength | back to summary |
|---|---|
| public ZipShort getCentralDirectoryLength() Length of the extra field in the central directory - without Header-ID or length specifier.
| |
| getHeaderId | back to summary |
|---|---|
| public ZipShort getHeaderId() The Header-ID.
| |
| getLocalFileDataData | back to summary |
|---|---|
| public byte[] getLocalFileDataData() The actual data to put into local file data - without Header-ID or length specifier.
| |
| getLocalFileDataLength | back to summary |
|---|---|
| public ZipShort getLocalFileDataLength() Length of the extra field in the local file data - without Header-ID or length specifier.
| |
| parseFromLocalFileData | back to summary |
|---|---|
| public void parseFromLocalFileData(byte[] data, int offset, int length) throws ZipException Populate data from this array as if it was in local file data.
| |