public enum ZipMethod extends Enum<ZipMethod>
| Enum Constant and Description | 
|---|
| AES_ENCRYPTEDCompression Method 99 for AES encryption. | 
| BZIP2Compression Method 12 for bzip2. | 
| DEFLATEDCompression method 8 for compressed (deflated) entries. | 
| ENHANCED_DEFLATEDCompression Method 9 for enhanced deflate. | 
| EXPANDING_LEVEL_1Reduced with compression factor 1. | 
| EXPANDING_LEVEL_2Reduced with compression factor 2. | 
| EXPANDING_LEVEL_3Reduced with compression factor 3. | 
| EXPANDING_LEVEL_4Reduced with compression factor 4. | 
| IMPLODINGImploding. | 
| JPEGCompression Method 96 for Jpeg compression. | 
| LZMACompression Method 14 for LZMA. | 
| PKWARE_IMPLODINGPKWARE Data Compression Library Imploding. | 
| PPMDCompression Method 98 for PPMd. | 
| STOREDCompression method 0 for uncompressed entries. | 
| TOKENIZATIONTokenization. | 
| UNKNOWNUnknown compression method. | 
| UNSHRINKINGUnShrinking. | 
| WAVPACKCompression Method 97 for WavPack. | 
| XZCompression Method 95 for XZ. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCode()the code of the compression method. | 
| static ZipMethod | getMethodByCode(int code)returns the  ZipMethodfor 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.STOREDpublic 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.DEFLATEDpublic static final ZipMethod ENHANCED_DEFLATED
public static final ZipMethod PKWARE_IMPLODING
public static final ZipMethod BZIP2
public static final ZipMethod XZ
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 © 2018 The Apache Software Foundation. All rights reserved.