public enum CompressionLevel extends Enum<CompressionLevel>
Enum Constant and Description |
---|
BEST_COMPRESSION |
BEST_SPEED |
DEFAULT_COMPRESSION |
LEVEL_2 |
LEVEL_3 |
LEVEL_4 |
LEVEL_5 |
LEVEL_6 |
LEVEL_7 |
LEVEL_8 |
NO_COMPRESSION |
Modifier and Type | Method and Description |
---|---|
static CompressionLevel |
getCompressionLevel(int level) |
int |
getLevel() |
static CompressionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionLevel BEST_COMPRESSION
public static final CompressionLevel BEST_SPEED
public static final CompressionLevel DEFAULT_COMPRESSION
public static final CompressionLevel LEVEL_2
public static final CompressionLevel LEVEL_3
public static final CompressionLevel LEVEL_4
public static final CompressionLevel LEVEL_5
public static final CompressionLevel LEVEL_6
public static final CompressionLevel LEVEL_7
public static final CompressionLevel LEVEL_8
public static final CompressionLevel NO_COMPRESSION
public static CompressionLevel[] values()
for (CompressionLevel c : CompressionLevel.values()) System.out.println(c);
public static CompressionLevel 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 static CompressionLevel getCompressionLevel(int level)
public int getLevel()