|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ZipEntryExtraField
This interface defines a Zip entry extra field. A Zip entry may have zero or more extra fields that store metadata that is not supported in the regular headers or the in the external file attributes.
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.
Method Summary | |
---|---|
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? |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |