public class UnrecognizedExtraField extends java.lang.Object implements ZipExtraField
Assumes local file data and central directory entries are identical - unless told the opposite.
Modifier and Type | Field and Description |
---|---|
private byte[] |
m_centralData
Extra field data in central directory - without Header-ID or length
specifier.
|
private ZipShort |
m_headerID
The Header-ID.
|
private byte[] |
m_localData
Extra field data in local file data - without Header-ID or length
specifier.
|
Constructor and Description |
---|
UnrecognizedExtraField() |
Modifier and Type | Method and Description |
---|---|
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.
|
private byte[] m_centralData
private ZipShort m_headerID
private byte[] m_localData
public void setCentralDirectoryData(byte[] centralData)
centralData
- the central directory datapublic void setHeaderID(ZipShort headerID)
headerID
- the header IDpublic void setLocalFileDataData(byte[] localData)
localData
- the local file datapublic byte[] getCentralDirectoryData()
getCentralDirectoryData
in interface ZipExtraField
public ZipShort getCentralDirectoryLength()
getCentralDirectoryLength
in interface ZipExtraField
public ZipShort getHeaderID()
getHeaderID
in interface ZipExtraField
public byte[] getLocalFileDataData()
getLocalFileDataData
in interface ZipExtraField
public ZipShort getLocalFileDataLength()
getLocalFileDataLength
in interface ZipExtraField
public void parseFromLocalFileData(byte[] buffer, int offset, int length)
parseFromLocalFileData
in interface ZipExtraField
buffer
- the buffer to useoffset
- the offset into bufferlength
- then length of data