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