public class ZipEntryCompressionMethodRegistry extends Object
ZipEntryCompressionMethod
:s that may occur in a Zip file are
registered.
By default, the registry knows about only the compression methods that are currently supported.
ZipEntryCompressionMethodFactory
Constructor and Description |
---|
ZipEntryCompressionMethodRegistry() |
Modifier and Type | Method and Description |
---|---|
ZipEntryCompressionMethodFactory |
forCode(UnsignedShort code)
Get the
ZipEntryCompressionMethodFactory that creates compression
method objects corresponding to the supplied code. |
void |
registerCompressionMethodFactory(ZipEntryCompressionMethodFactory f)
Register a new compression method.
|
public void registerCompressionMethodFactory(ZipEntryCompressionMethodFactory f)
f
- The compression method factory.public ZipEntryCompressionMethodFactory forCode(UnsignedShort code) throws UnknownZipEntryCompressionMethodException
ZipEntryCompressionMethodFactory
that creates compression
method objects corresponding to the supplied code. The code is the code
identifying the compression method in a Zip entry's header.code
- The code for the compression method.UnknownZipEntryCompressionMethodException
- If no compression
method is registered for the supplied code.