public static enum EncodingUtil.DeflateStrategy extends java.lang.Enum<EncodingUtil.DeflateStrategy>
| Enum Constant and Description |
|---|
BEST_COMPRESSION
Best compression.
|
BEST_SPEED
Best speed.
|
FILTERED
Best for data consisting mostly of small values with a somewhat random distribution.
|
HUFFMAN_ONLY
Huffman coding only.
|
NONE
No compression.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getId()
Gets a byte that identifies the strategy.
|
static EncodingUtil.DeflateStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncodingUtil.DeflateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodingUtil.DeflateStrategy NONE
public static final EncodingUtil.DeflateStrategy BEST_COMPRESSION
public static final EncodingUtil.DeflateStrategy BEST_SPEED
public static final EncodingUtil.DeflateStrategy FILTERED
public static final EncodingUtil.DeflateStrategy HUFFMAN_ONLY
public static EncodingUtil.DeflateStrategy[] values()
for (EncodingUtil.DeflateStrategy c : EncodingUtil.DeflateStrategy.values()) System.out.println(c);
public static EncodingUtil.DeflateStrategy 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 nullpublic byte getId()