public interface ZipEntryExtraFieldParser
ZipFile
object.
Every extra field type has a unique code identifying it. This code can be
used to look up a parser implementation using the
ZipEntryExtraFieldParserRegistry
.
ZipEntryExtraField
,
ZipEntryExtraFieldParserRegistry
Modifier and Type | Method and Description |
---|---|
UnsignedShort |
getCode()
Get the code that identifies the kind of
ZipEntryExtraField
objects created by this factory. |
ZipEntryExtraField |
parse(byte[] barr,
boolean inLocalHeader)
Parse the extra field data and create a
ZipEntryExtraField
object. |
UnsignedShort getCode()
ZipEntryExtraField
objects created by this factory.ZipEntryExtraField parse(byte[] barr, boolean inLocalHeader) throws ZipFileParseException
ZipEntryExtraField
object.barr
- A byte array containing the extra field data. This array does
not contain the initial four bytes identifying the extra field
type and the extra field size.inLocalHeader
- Is the extra field from the Zip entry's local header
(true
) of from the central header (false
)?ZipFileParseException
- If the contents of the array cannot be
parsed.