Enum ZipMethod
- All Implemented Interfaces:
Serializable, Comparable<ZipMethod>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum 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.Compression Method 97 for WavPack.Compression Method 95 for XZ. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()the code of the compression method.static ZipMethodgetMethodByCode(int code) returns theZipMethodfor the given code or null if the method is not known.static ZipMethodReturns 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
-
UNSHRINKING
-
EXPANDING_LEVEL_1
-
EXPANDING_LEVEL_2
-
EXPANDING_LEVEL_3
-
EXPANDING_LEVEL_4
-
IMPLODING
-
TOKENIZATION
-
DEFLATED
-
ENHANCED_DEFLATED
Compression Method 9 for enhanced deflate.- See Also:
-
PKWARE_IMPLODING
-
BZIP2
-
LZMA
-
XZ
-
JPEG
-
WAVPACK
-
PPMD
-
AES_ENCRYPTED
-
UNKNOWN
-
-
Method Details
-
values
-
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
-
getCode
the code of the compression method.- Returns:
- an integer code for the method
- See Also:
-