org.apache.tools.zip
public class UnrecognizedExtraField extends Object implements CentralDirectoryParsingZipExtraField
Assumes local file data and central directory entries are identical - unless told the opposite.
Method Summary | |
---|---|
byte[] | getCentralDirectoryData()
Get the central data. |
ZipShort | getCentralDirectoryLength()
Get the central data length.
|
ZipShort | getHeaderId()
Get the header id. |
byte[] | getLocalFileDataData()
Get the local data. |
ZipShort | getLocalFileDataLength()
Get the length of the local data. |
void | parseFromCentralDirectoryData(byte[] data, int offset, int length) |
void | parseFromLocalFileData(byte[] data, int offset, int length) |
void | setCentralDirectoryData(byte[] data)
Set the extra field data in central directory. |
void | setHeaderId(ZipShort headerId)
Set the header id. |
void | setLocalFileDataData(byte[] data)
Set the extra field data in the local file data -
without Header-ID or length specifier. |
Returns: the central data if present, else return the local file data
Returns: the central data length
Returns: the header id
Returns: the local data
Returns: the length of the local data
Parameters: data the array of bytes. offset the source location in the data array. length the number of bytes to use in the data array.
Parameters: data the array of bytes. offset the source location in the data array. length the number of bytes to use in the data array.
See Also: (byte[], int, int)
Parameters: data the data to use
Parameters: headerId the header id to use
Parameters: data the field data to use