public enum CompressionMode extends Enum<CompressionMode>
| Enum Constant and Description |
|---|
MODE_1 |
MODE_2 |
MODE_3 |
MODE_4 |
MODE_5 |
MODE_6 |
MODE_7 |
MODE_8 |
MODE_9 |
| Modifier and Type | Method and Description |
|---|---|
static CompressionMode |
get(int level)
The the instance corresponding to the integer
level. |
int |
getLevel()
Return the integer level number corresponding to this instance.
|
static CompressionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionMode MODE_1
public static final CompressionMode MODE_2
public static final CompressionMode MODE_3
public static final CompressionMode MODE_4
public static final CompressionMode MODE_5
public static final CompressionMode MODE_6
public static final CompressionMode MODE_7
public static final CompressionMode MODE_8
public static final CompressionMode MODE_9
public static CompressionMode[] values()
for (CompressionMode c : CompressionMode.values()) System.out.println(c);
public static CompressionMode 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 getLevel()
get()public static CompressionMode get(int level)
level.level - value from 1 (fastest) to 9 (best)IllegalArgumentException - if mode is invalidgetLevel()Copyright © 2015. All rights reserved.