org.at4j.zip.ef
Class UnparsedZipEntryExtraFieldParser
java.lang.Object
org.at4j.zip.ef.UnparsedZipEntryExtraFieldParser
- All Implemented Interfaces:
- ZipEntryExtraFieldParser
public class UnparsedZipEntryExtraFieldParser
- extends Object
- implements ZipEntryExtraFieldParser
This object is used to handle extra fields that are not supported. It creates
UnparsedZipEntryExtraField
objects.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
UnparsedZipEntryExtraField
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final UnparsedZipEntryExtraFieldParser INSTANCE
- Singleton instance that may be used instead of instantiating this class.
UnparsedZipEntryExtraFieldParser
public UnparsedZipEntryExtraFieldParser()
getCode
public UnsignedShort getCode()
- This parser does not have a code. It is used for all codes for which
there are no custom parser registered.
- Specified by:
getCode
in interface ZipEntryExtraFieldParser
- Returns:
- The code.
parse
public UnparsedZipEntryExtraField parse(byte[] barr,
boolean inLocalHeader)
- Description copied from interface:
ZipEntryExtraFieldParser
- Parse the extra field data and create a
ZipEntryExtraField
object.
- Specified by:
parse
in interface ZipEntryExtraFieldParser
- Parameters:
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
)?
- Returns:
- An
UnparsedZipEntryExtraField
object.