public class Reduced4CompressionMethod 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 Reduced4CompressionMethod |
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 |
---|---|
Reduced4CompressionMethod |
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, isRandomAccessSupported
public static final UnsignedShort CODE
public static final String NAME
public static final UnsignedShort VERSION_NEEDED_TO_EXTRACT
ZipEntryCompressionMethod.getVersionNeededToExtract()
.public static final Reduced4CompressionMethod INSTANCE
public UnsignedShort getCode()
ZipEntryCompressionMethodFactory
getCode
in interface ZipEntryCompressionMethod
getCode
in interface ZipEntryCompressionMethodFactory
public String getName()
ZipEntryCompressionMethod
getName
in interface ZipEntryCompressionMethod
public UnsignedShort getVersionNeededToExtract()
ZipEntryCompressionMethod
getVersionNeededToExtract
in interface ZipEntryCompressionMethod
UnsignedShort
representing the version number. 10
corresponds to version 1.0, 62
to 6.2, etc.public Reduced4CompressionMethod create(ZipGeneralPurposeBitFlags gbBitFlags)
ZipEntryCompressionMethodFactory
create
in interface ZipEntryCompressionMethodFactory
gbBitFlags
- The Zip entry's general purpose bit flags. They may
contain compression algorithm parameters.