public class UnrecognizedExtraField extends Object implements ZipExtraField
Assumes local file data and central directory entries are identical - unless told the opposite.
| Constructor and Description |
|---|
UnrecognizedExtraField() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCentralDirectoryData()
The actual data to put central directory - without Header-ID or
length specifier.
|
ZipShort |
getCentralDirectoryLength()
Length of the extra field in the central directory - without
Header-ID or length specifier.
|
ZipShort |
getHeaderId()
The Header-ID.
|
byte[] |
getLocalFileDataData()
The actual data to put into local file data - without Header-ID
or length specifier.
|
ZipShort |
getLocalFileDataLength()
Length of the extra field in the local file data - without
Header-ID or length specifier.
|
void |
parseFromLocalFileData(byte[] data,
int offset,
int length)
Populate data from this array as if it was in local file data.
|
void |
setCentralDirectoryData(byte[] data) |
void |
setHeaderId(ZipShort headerId) |
void |
setLocalFileDataData(byte[] data) |
public void setHeaderId(ZipShort headerId)
public ZipShort getHeaderId()
ZipExtraFieldgetHeaderId in interface ZipExtraFieldpublic void setLocalFileDataData(byte[] data)
public ZipShort getLocalFileDataLength()
ZipExtraFieldgetLocalFileDataLength in interface ZipExtraFieldpublic byte[] getLocalFileDataData()
ZipExtraFieldgetLocalFileDataData in interface ZipExtraFieldpublic void setCentralDirectoryData(byte[] data)
public ZipShort getCentralDirectoryLength()
ZipExtraFieldgetCentralDirectoryLength in interface ZipExtraFieldpublic byte[] getCentralDirectoryData()
ZipExtraFieldgetCentralDirectoryData in interface ZipExtraFieldpublic void parseFromLocalFileData(byte[] data,
int offset,
int length)
ZipExtraFieldparseFromLocalFileData in interface ZipExtraFieldCopyright © 2001-2013 Codehaus. All Rights Reserved.