public enum CompressionType extends Enum<CompressionType>
Contains constant definitions for the standard compression types we support.
Not every Format supports every compression type. Use
Format.getSupportedCompressionTypes() to see what compression
types your Format supports.
| Enum Constant and Description |
|---|
Bzip2 |
Deflate |
Lzo |
Snappy |
Uncompressed |
| Modifier and Type | Method and Description |
|---|---|
static CompressionType |
forName(String name)
Return a
CompressionType for the compression type name specified. |
String |
getName()
Get the
String name for this compression type. |
String |
toString() |
static CompressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionType Snappy
public static final CompressionType Deflate
public static final CompressionType Bzip2
public static final CompressionType Lzo
public static final CompressionType Uncompressed
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType 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 String getName()
String name for this compression type. This name can be
passed to forName(java.lang.String) to return this instance.public String toString()
toString in class Enum<CompressionType>public static CompressionType forName(String name)
CompressionType for the compression type name specified.
If name is not a valid name, an
IllegalArgumentException is thrown. Current the compression types
snappy,
deflate,
bzip2, and
lzoare supported. Not all compression types are supported by all
Formats.name - the name of the compression typeIllegalArgumentException - if name is not a valid compression type.Copyright © 2013–2015. All rights reserved.