Enum ZipMethod
- All Implemented Interfaces:
Serializable
,Comparable<ZipMethod>
List of known compression methods
Many of these methods are currently not supported by commons compress
- Since:
- 1.5
-
Enum Constant Summary
Enum ConstantDescriptionCompression Method 99 for AES encryption.Compression Method 12 for bzip2.Compression method 8 for compressed (deflated) entries.Compression Method 9 for enhanced deflate.Reduced with compression factor 1.Reduced with compression factor 2.Reduced with compression factor 3.Reduced with compression factor 4.Imploding.Compression Method 96 for Jpeg compression.Compression Method 14 for LZMA.PKWARE Data Compression Library Imploding.Compression Method 98 for PPMd.Compression method 0 for uncompressed entries.Tokenization.Unknown compression method.UnShrinking. dynamic Lempel-Ziv-Welch-AlgorithmCompression Method 97 for WavPack.Compression Method 95 for XZ. -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
the code of the compression method.static ZipMethod
getMethodByCode
(int code) returns theZipMethod
for the given code or null if the method is not known.static ZipMethod
Returns the enum constant of this type with the specified name.static ZipMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STORED
Compression method 0 for uncompressed entries.- See Also:
-
UNSHRINKING
UnShrinking. dynamic Lempel-Ziv-Welch-Algorithm -
EXPANDING_LEVEL_1
Reduced with compression factor 1. -
EXPANDING_LEVEL_2
Reduced with compression factor 2. -
EXPANDING_LEVEL_3
Reduced with compression factor 3. -
EXPANDING_LEVEL_4
Reduced with compression factor 4. -
IMPLODING
Imploding. -
TOKENIZATION
Tokenization. -
DEFLATED
Compression method 8 for compressed (deflated) entries.- See Also:
-
ENHANCED_DEFLATED
Compression Method 9 for enhanced deflate.- See Also:
-
PKWARE_IMPLODING
PKWARE Data Compression Library Imploding.- See Also:
-
BZIP2
Compression Method 12 for bzip2.- See Also:
-
LZMA
Compression Method 14 for LZMA. -
XZ
Compression Method 95 for XZ.- See Also:
-
JPEG
Compression Method 96 for Jpeg compression.- See Also:
-
WAVPACK
Compression Method 97 for WavPack.- See Also:
-
PPMD
Compression Method 98 for PPMd.- See Also:
-
AES_ENCRYPTED
Compression Method 99 for AES encryption.- See Also:
-
UNKNOWN
Unknown compression method.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMethodByCode
returns theZipMethod
for the given code or null if the method is not known.- Parameters:
code
- the code- Returns:
- the
ZipMethod
for the given code or null if the method is not known.
-
getCode
the code of the compression method.- Returns:
- an integer code for the method
- See Also:
-