public static enum TextIO.CompressionType extends java.lang.Enum<TextIO.CompressionType>
Enum Constant and Description |
---|
AUTO
Automatically determine the compression type based on filename extension.
|
BZIP2
BZipped.
|
DEFLATE
Deflate compressed.
|
GZIP
GZipped.
|
UNCOMPRESSED
Uncompressed (i.e., may be split).
|
ZIP
Zipped.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String filename)
Determine if a given filename matches a compression type based on its extension.
|
static TextIO.CompressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextIO.CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextIO.CompressionType AUTO
public static final TextIO.CompressionType UNCOMPRESSED
public static final TextIO.CompressionType GZIP
public static final TextIO.CompressionType BZIP2
public static final TextIO.CompressionType ZIP
public static final TextIO.CompressionType DEFLATE
public static TextIO.CompressionType[] values()
for (TextIO.CompressionType c : TextIO.CompressionType.values()) System.out.println(c);
public static TextIO.CompressionType 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 boolean matches(java.lang.String filename)
filename
- the filename to match