public enum CodecType extends Enum<CodecType>
| Enum Constant and Description |
|---|
ALL
The codec should be used for both compression and decompression.
|
COMPRESS
The codec should be used for compression only.
|
DECOMPRESS
The codec should be used for decompression only.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isForCompression()
Whether the associated codec should be used for compression.
|
boolean |
isForDecompression()
Whether the associated codec should be used for decompression.
|
static CodecType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodecType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodecType COMPRESS
public static final CodecType DECOMPRESS
public static final CodecType ALL
public static CodecType[] values()
for (CodecType c : CodecType.values()) System.out.println(c);
public static CodecType 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 boolean isForCompression()
public boolean isForDecompression()