public static enum XmlIO.Read.CompressionType extends java.lang.Enum<XmlIO.Read.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 XmlIO.Read.CompressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XmlIO.Read.CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlIO.Read.CompressionType AUTO
public static final XmlIO.Read.CompressionType UNCOMPRESSED
public static final XmlIO.Read.CompressionType GZIP
public static final XmlIO.Read.CompressionType BZIP2
public static final XmlIO.Read.CompressionType ZIP
public static final XmlIO.Read.CompressionType DEFLATE
public static XmlIO.Read.CompressionType[] values()
for (XmlIO.Read.CompressionType c : XmlIO.Read.CompressionType.values()) System.out.println(c);
public static XmlIO.Read.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