ZipExtraField

interface ZipExtraField

General 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.

Inheritors

Properties

Link copied to clipboard
Size of an extra field field header (id + length).

Functions

Link copied to clipboard
The actual data to put into central directory - without Header-ID or length specifier.
Link copied to clipboard
Length of the extra field in the central directory - without Header-ID or length specifier.
Link copied to clipboard
abstract fun getHeaderId(): ZipShort
The Header-ID.
Link copied to clipboard
The actual data to put into local file data - without Header-ID or length specifier.
Link copied to clipboard
Length of the extra field in the local file data - without Header-ID or length specifier.
Link copied to clipboard
abstract fun parseFromCentralDirectoryData(buffer: Array<Byte>, offset: Int, length: Int)
Populate data from this array as if it was in central directory data.
Link copied to clipboard
abstract fun parseFromLocalFileData(buffer: Array<Byte>, offset: Int, length: Int)
Populate data from this array as if it was in local file data.