public class ZipEntryExtraFieldParserRegistry extends Object
ZipEntryExtraFieldParser
objects. The objects
are accessed by the codes that identify them in the Zip file.
The registry is used by the ZipFile
object when parsing
the Zip file.
Constructor and Description |
---|
ZipEntryExtraFieldParserRegistry()
Create the registry.
|
Modifier and Type | Method and Description |
---|---|
ZipEntryExtraFieldParser |
forCode(UnsignedShort code)
Get the extra field parser registered under the supplied code.
|
void |
registerParser(ZipEntryExtraFieldParser p)
Register a new extra field parser.
|
public ZipEntryExtraFieldParserRegistry()
public void registerParser(ZipEntryExtraFieldParser p)
If another parser is already registered for the same extra field code, that parser is unregistered.
p
- The parser to register.public ZipEntryExtraFieldParser forCode(UnsignedShort code)
UnparsedZipEntryExtraFieldParser
is returned.code
- The code identifying the extra field in the Zip file.