public class ImplodedCompressionMethod extends AbstractUnsupportedCompressionMethod implements ZipEntryCompressionMethodFactory
This class cannot be instantiated. Use the singleton instance
INSTANCE instead.
| Modifier and Type | Field and Description |
|---|---|
static UnsignedShort |
CODE
The unique code for this compression method.
|
static ImplodedCompressionMethod |
INSTANCE
Singleton instance.
|
static String |
NAME |
static UnsignedShort |
VERSION_NEEDED_TO_EXTRACT
The PK-Zip version needed to extract entries compressed with this
compression method.
|
| Modifier and Type | Method and Description |
|---|---|
ImplodedCompressionMethod |
create(ZipGeneralPurposeBitFlags gbBitFlags)
Create a compression method instance.
|
UnsignedShort |
getCode()
Get the unique code identifying this compression method.
|
String |
getName()
Get a human-readable name for the compression method.
|
UnsignedShort |
getVersionNeededToExtract()
Get the PK-Zip version needed to extract Zip entries compressed by this
compression method.
|
String |
toString() |
createInputStream, createOutputStream, createRandomAccess, createWithCompressionLevel, isRandomAccessSupportedpublic static final UnsignedShort CODE
public static final String NAME
public static final UnsignedShort VERSION_NEEDED_TO_EXTRACT
ZipEntryCompressionMethod.getVersionNeededToExtract().public static final ImplodedCompressionMethod INSTANCE
public UnsignedShort getCode()
ZipEntryCompressionMethodFactorygetCode in interface ZipEntryCompressionMethodgetCode in interface ZipEntryCompressionMethodFactorypublic String getName()
ZipEntryCompressionMethodgetName in interface ZipEntryCompressionMethodpublic UnsignedShort getVersionNeededToExtract()
ZipEntryCompressionMethodgetVersionNeededToExtract in interface ZipEntryCompressionMethodUnsignedShort representing the version number. 10 corresponds to version 1.0, 62 to 6.2, etc.public ImplodedCompressionMethod create(ZipGeneralPurposeBitFlags gbBitFlags)
ZipEntryCompressionMethodFactorycreate in interface ZipEntryCompressionMethodFactorygbBitFlags - The Zip entry's general purpose bit flags. They may
contain compression algorithm parameters.