org.apache.tools.zip
public final class UnparseableExtraFieldData extends Object implements CentralDirectoryParsingZipExtraField
The header-id is artificial (and not listed as a know ID in
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
APPNOTE.TXT
. Since it isn't used anywhere except to satisfy the
ZipExtraField contract it shouldn't matter anyway.
Since: Ant 1.8.1
Method Summary | |
---|---|
byte[] | getCentralDirectoryData()
The actual data to put into central directory.
|
ZipShort | getCentralDirectoryLength()
Length of the complete extra field in the central directory.
|
ZipShort | getHeaderId()
The Header-ID.
|
byte[] | getLocalFileDataData()
The actual data to put into local file data.
|
ZipShort | getLocalFileDataLength()
Length of the complete extra field in the local file data.
|
void | parseFromCentralDirectoryData(byte[] buffer, int offset, int length)
Populate data from this array as if it was in central directory data.
|
void | parseFromLocalFileData(byte[] buffer, int offset, int length)
Populate data from this array as if it was in local file data.
|
Returns: The CentralDirectoryData value
Returns: The CentralDirectoryLength value
Returns: a completely arbitrary value that should be ignored.
Returns: The LocalFileDataData value
Returns: The LocalFileDataLength value
Parameters: buffer the buffer to read data from offset offset into buffer to read data length the length of data
Throws: ZipException on error
Parameters: buffer the buffer to read data from offset offset into buffer to read data length the length of data