-
public interface ZipExtraFieldGeneral format of extra field data.
Extra fields usually appear twice per file, once in the local file data and once in the central directory. Usually they are the same, but they don't have to be. java.util.zip.ZipOutputStream will only use the local file data in both places.
-
-
Method Summary
Modifier and Type Method Description abstract Array<byte>getCentralDirectoryData()The actual data to put into central directory - without Header-ID orlength specifier. abstract ZipShortgetCentralDirectoryLength()Length of the extra field in the central directory - withoutHeader-ID or length specifier. abstract ZipShortgetHeaderId()The Header-ID. abstract Array<byte>getLocalFileDataData()The actual data to put into local file data - without Header-IDor length specifier. abstract ZipShortgetLocalFileDataLength()Length of the extra field in the local file data - withoutHeader-ID or length specifier. abstract voidparseFromCentralDirectoryData(Array<byte> buffer, int offset, int length)Populate data from this array as if it was in central directory data. abstract voidparseFromLocalFileData(Array<byte> buffer, int offset, int length)Populate data from this array as if it was in local file data. -
-
Method Detail
-
getCentralDirectoryData
abstract Array<byte> getCentralDirectoryData()
The actual data to put into central directory - without Header-ID orlength specifier.
-
getCentralDirectoryLength
abstract ZipShort getCentralDirectoryLength()
Length of the extra field in the central directory - withoutHeader-ID or length specifier.
-
getHeaderId
abstract ZipShort getHeaderId()
The Header-ID.
-
getLocalFileDataData
abstract Array<byte> getLocalFileDataData()
The actual data to put into local file data - without Header-IDor length specifier.
-
getLocalFileDataLength
abstract ZipShort getLocalFileDataLength()
Length of the extra field in the local file data - withoutHeader-ID or length specifier.
-
parseFromCentralDirectoryData
abstract 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
abstract 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
-
-
-
-