org.apache.commons.compress.archivers.zip
public class UnrecognizedExtraField extends Object implements ZipExtraField
Assumes local file data and central directory entries are identical - unless told the opposite.
Version: $Revision: 155439 $
Field Summary | |
---|---|
byte[] | m_centralData
Extra field data in central directory - without Header-ID or length
specifier.
|
ZipShort | m_headerID
The Header-ID.
|
byte[] | m_localData
Extra field data in local file data - without Header-ID or length
specifier.
|
Method Summary | |
---|---|
byte[] | getCentralDirectoryData()
Get the central directory data.
|
ZipShort | getCentralDirectoryLength()
Get the length of the central directory in bytes.
|
ZipShort | getHeaderID()
Get the HeaderID.
|
byte[] | getLocalFileDataData()
Get the local file data.
|
ZipShort | getLocalFileDataLength()
Get the length of local file data in bytes.
|
void | parseFromLocalFileData(byte[] buffer, int offset, int length)
Parse LocalFiledata out of supplied buffer.
|
void | setCentralDirectoryData(byte[] centralData)
Set the central directory data
|
void | setHeaderID(ZipShort headerID)
Set the header ID.
|
void | setLocalFileDataData(byte[] localData)
Set the local file data.
|
Since: 1.1
Since: 1.1
Since: 1.1
Returns: the central directory data.
Returns: the length of the central directory in bytes.
Returns: the HeaderID
Returns: the local file data
Returns: the length of local file data in bytes
Parameters: buffer the buffer to use offset the offset into buffer length then length of data
Parameters: centralData the central directory data
Parameters: headerID the header ID
Parameters: localData the local file data