public enum ZipCompression extends Enum<ZipCompression>
Enum Constant and Description |
---|
DEFLATED
The entry should be
ZipEntry.DEFLATED in the archive. |
STORED
The entry should be
ZipEntry.STORED in the archive. |
Modifier and Type | Method and Description |
---|---|
static ZipCompression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZipCompression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZipCompression STORED
ZipEntry.STORED
in the archive.public static final ZipCompression DEFLATED
ZipEntry.DEFLATED
in the archive.public static ZipCompression[] values()
for (ZipCompression c : ZipCompression.values()) System.out.println(c);
public static ZipCompression 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 null