-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.zip.compress.archivers.zip.ZipExtraField
public final class UnparseableExtraFieldData implements ZipExtraField
Wrapper for extra field data that doesn't conform to the recommended format of header-tag + size + data.
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.
-
-
Field Summary
Fields Modifier and Type Field Description private Array<byte>centralDirectoryData
-
Method Summary
Modifier and Type Method Description Array<byte>getCentralDirectoryData()The actual data to put into central directory. ZipShortgetCentralDirectoryLength()Length of the complete extra field in the central directory. ZipShortgetHeaderId()The Header-ID. Array<byte>getLocalFileDataData()The actual data to put into local file data. ZipShortgetLocalFileDataLength()Length of the complete extra field in the local file data. voidparseFromCentralDirectoryData(Array<byte> buffer, int offset, int length)Populate data from this array as if it was in central directory data. voidparseFromLocalFileData(Array<byte> buffer, int offset, int length)Populate data from this array as if it was in local file data. -
-
Method Detail
-
getCentralDirectoryData
Array<byte> getCentralDirectoryData()
The actual data to put into central directory.
-
getCentralDirectoryLength
ZipShort getCentralDirectoryLength()
Length of the complete extra field in the central directory.
-
getHeaderId
ZipShort getHeaderId()
The Header-ID.
-
getLocalFileDataData
Array<byte> getLocalFileDataData()
The actual data to put into local file data.
-
getLocalFileDataLength
ZipShort getLocalFileDataLength()
Length of the complete extra field in the local file data.
-
parseFromCentralDirectoryData
void parseFromCentralDirectoryData(Array<byte> buffer, int offset, int length)
Populate data from this array as if it was in central directory data.
- Parameters:
buffer- the buffer to read data fromoffset- offset into buffer to read datalength- the length of data
-
parseFromLocalFileData
void parseFromLocalFileData(Array<byte> buffer, int offset, int length)
Populate data from this array as if it was in local file data.
- Parameters:
buffer- the buffer to read data fromoffset- offset into buffer to read datalength- the length of data
-
-
-
-