public enum ZipMethod extends Enum<ZipMethod>
Enum Constant and Description |
---|
AES_ENCRYPTED
Compression Method 99 for AES encryption.
|
BZIP2
Compression Method 12 for bzip2.
|
DEFLATED
Compression method 8 for compressed (deflated) entries.
|
ENHANCED_DEFLATED
Compression Method 9 for enhanced deflate.
|
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.
|
JPEG
Compression Method 96 for Jpeg compression.
|
LZMA
Compression Method 14 for LZMA.
|
PKWARE_IMPLODING
PKWARE Data Compression Library Imploding.
|
PPMD
Compression Method 98 for PPMd.
|
STORED
Compression method 0 for uncompressed entries.
|
TOKENIZATION
Tokenization.
|
UNKNOWN
Unknown compression method.
|
UNSHRINKING
UnShrinking.
|
WAVPACK
Compression Method 97 for WavPack.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
the code of the compression method.
|
static ZipMethod |
getMethodByCode(int code)
returns the
ZipMethod for the given code or null if the
method is not known. |
static ZipMethod |
valueOf(String name)
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.
|
public static final ZipMethod STORED
ZipEntry.STORED
public static final ZipMethod UNSHRINKING
public static final ZipMethod EXPANDING_LEVEL_1
public static final ZipMethod EXPANDING_LEVEL_2
public static final ZipMethod EXPANDING_LEVEL_3
public static final ZipMethod EXPANDING_LEVEL_4
public static final ZipMethod TOKENIZATION
public static final ZipMethod DEFLATED
ZipEntry.DEFLATED
public static final ZipMethod ENHANCED_DEFLATED
public static final ZipMethod PKWARE_IMPLODING
public static final ZipMethod BZIP2
public static final ZipMethod JPEG
public static final ZipMethod WAVPACK
public static final ZipMethod PPMD
public static final ZipMethod AES_ENCRYPTED
public static ZipMethod[] values()
for (ZipMethod c : ZipMethod.values()) System.out.println(c);
public static ZipMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
ZipArchiveEntry.getMethod()
public static ZipMethod getMethodByCode(int code)
ZipMethod
for the given code or null if the
method is not known.code
- the codeZipMethod
for the given code or null if the
method is not known.Copyright © 2016 The Apache Software Foundation. All rights reserved.