public interface ZipEntryExtraField
An extra field for an entry is always stored in two variants – one in the local file header and one in the entry's central directory record. The local header version often contain more data than the central directory version.
Each extra field type is identified with a unique code.
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(ZipBuilderConfiguration c)
Encode this extra field's data for storing in a Zip file.
|
boolean |
isInLocalHeader()
Is this field stored in the Zip entry's local header or in the Zip file's
central directory record?
|
boolean isInLocalHeader()
The same ZipEntryExtraField
type may have different properties
depending on if it is specified in the local or in the central header.
true
if this extra field comes from the Zip entry's local
header. false
if it comes from the Zip file's central directory.byte[] encode(ZipBuilderConfiguration c)
c
- The configuration for the Zip builder object that is building
the Zip file.