public class UnrecognizedExtraField extends java.lang.Object implements CentralDirectoryParsingZipExtraField
Assumes local file data and central directory entries are identical - unless told the opposite.
| 构造器和说明 |
|---|
UnrecognizedExtraField() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Populate data from this array as if it was in central directory data.
|
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)
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.
|
public void setHeaderId(ZipShort headerId)
headerId - the header id to usepublic ZipShort getHeaderId()
getHeaderId 在接口中 ZipExtraFieldpublic void setLocalFileDataData(byte[] data)
data - the field data to usepublic ZipShort getLocalFileDataLength()
getLocalFileDataLength 在接口中 ZipExtraFieldpublic byte[] getLocalFileDataData()
getLocalFileDataData 在接口中 ZipExtraFieldpublic void setCentralDirectoryData(byte[] data)
data - the data to usepublic ZipShort getCentralDirectoryLength()
getCentralDirectoryLength 在接口中 ZipExtraFieldpublic byte[] getCentralDirectoryData()
getCentralDirectoryData 在接口中 ZipExtraFieldpublic void parseFromLocalFileData(byte[] data,
int offset,
int length)
ZipExtraFieldparseFromLocalFileData 在接口中 ZipExtraFielddata - the array of bytes.offset - the source location in the data array.length - the number of bytes to use in the data array.ZipExtraField.parseFromLocalFileData(byte[], int, int)public void parseFromCentralDirectoryData(byte[] data,
int offset,
int length)
CentralDirectoryParsingZipExtraFieldparseFromCentralDirectoryData 在接口中 CentralDirectoryParsingZipExtraFielddata - the array of bytes.offset - the source location in the data array.length - the number of bytes to use in the data array.