public final class UnparseableExtraFieldData extends java.lang.Object implements ZipExtraField
The header-id is artificial (and not listed as a known ID in APPNOTE.TXT). Since it isn't used anywhere except to satisfy the ZipExtraField contract it shouldn't matter anyway.
EXTRAFIELD_HEADER_SIZE
Constructor and Description |
---|
UnparseableExtraFieldData() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getCentralDirectoryData()
The actual data to put into central directory.
|
ZipShort |
getCentralDirectoryLength()
Length of the complete extra field in the central directory.
|
ZipShort |
getHeaderId()
The Header-ID.
|
byte[] |
getLocalFileDataData()
The actual data to put into local file data.
|
ZipShort |
getLocalFileDataLength()
Length of the complete extra field in the local file data.
|
void |
parseFromCentralDirectoryData(byte[] buffer,
int offset,
int length)
Populate data from this array as if it was in central directory data.
|
void |
parseFromLocalFileData(byte[] buffer,
int offset,
int length)
Populate data from this array as if it was in local file data.
|
public ZipShort getHeaderId()
getHeaderId
in interface ZipExtraField
public ZipShort getLocalFileDataLength()
getLocalFileDataLength
in interface ZipExtraField
public ZipShort getCentralDirectoryLength()
getCentralDirectoryLength
in interface ZipExtraField
public byte[] getLocalFileDataData()
getLocalFileDataData
in interface ZipExtraField
public byte[] getCentralDirectoryData()
getCentralDirectoryData
in interface ZipExtraField
public void parseFromLocalFileData(byte[] buffer, int offset, int length)
parseFromLocalFileData
in interface ZipExtraField
buffer
- the buffer to read data fromoffset
- offset into buffer to read datalength
- the length of datapublic void parseFromCentralDirectoryData(byte[] buffer, int offset, int length)
parseFromCentralDirectoryData
in interface ZipExtraField
buffer
- the buffer to read data fromoffset
- offset into buffer to read datalength
- the length of data"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"