public static enum StreamUtils.Type extends Enum<StreamUtils.Type>
Enum Constant and Description |
---|
BZIP2
BZIP2 is automatically used for .bz2 and .bzip2 extensions.
|
GZIP
GZIP is automatically used for .gz and .gzip extensions.
|
PLAIN
Plain text is used for anything which is not GZIP or BZIP.
|
Modifier and Type | Method and Description |
---|---|
static StreamUtils.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamUtils.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamUtils.Type BZIP2
public static final StreamUtils.Type GZIP
public static final StreamUtils.Type PLAIN
public static StreamUtils.Type[] values()
for (StreamUtils.Type c : StreamUtils.Type.values()) System.out.println(c);
public static StreamUtils.Type 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 null