public class NtfsExtraFieldParser extends Object implements ZipEntryExtraFieldParser
NtfsExtraField.NtfsExtraField| Modifier and Type | Field and Description |
|---|---|
static NtfsExtraFieldParser |
INSTANCE
Singleton instance that may be used instead of instantiating this class.
|
| Constructor and Description |
|---|
NtfsExtraFieldParser() |
| Modifier and Type | Method and Description |
|---|---|
UnsignedShort |
getCode()
Get the code that identifies the kind of
ZipEntryExtraField
objects created by this factory. |
NtfsExtraField |
parse(byte[] barr,
boolean inLocalHeader)
Parse the extra field data and create a
ZipEntryExtraField
object. |
public static final NtfsExtraFieldParser INSTANCE
public UnsignedShort getCode()
ZipEntryExtraFieldParserZipEntryExtraField
objects created by this factory.getCode in interface ZipEntryExtraFieldParserpublic NtfsExtraField parse(byte[] barr, boolean inLocalHeader) throws ZipFileParseException
ZipEntryExtraFieldParserZipEntryExtraField
object.parse in interface ZipEntryExtraFieldParserbarr - 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.