public enum CompressionAlgorithmSelection extends java.lang.Enum<CompressionAlgorithmSelection>
Enum Constant | Description |
---|---|
BALANCED |
A compromise between
PRESERVE_QUALITY
and
SPEED . |
PRESERVE_QUALITY |
The image quality is preserved as far as possible.
|
SPEED |
Favor fast compression time over image quality.
|
Modifier and Type | Method | Description |
---|---|---|
static CompressionAlgorithmSelection |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CompressionAlgorithmSelection[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionAlgorithmSelection PRESERVE_QUALITY
public static final CompressionAlgorithmSelection BALANCED
PRESERVE_QUALITY
and
SPEED
.public static final CompressionAlgorithmSelection SPEED
public static CompressionAlgorithmSelection[] values()
for (CompressionAlgorithmSelection c : CompressionAlgorithmSelection.values()) System.out.println(c);
public static CompressionAlgorithmSelection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null