public enum CompressorType extends Enum<CompressorType>
The GNU Lesser General Public License for details.
Modifier and Type | Method and Description |
---|---|
static CompressorType |
fromString(String name)
Get a CompressorType from a String
|
abstract Compressor |
getCompressor(byte[] input)
Get a compressor.
|
static CompressorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressorType ZIP
public static final CompressorType LZSS
public static final CompressorType BZIP2
public static final CompressorType GZIP
public static final CompressorType XZ
public static CompressorType[] values()
for (CompressorType c : CompressorType.values()) System.out.println(c);
public static CompressorType 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 abstract Compressor getCompressor(byte[] input)
input
- the stream to compress or to uncompress.public static CompressorType fromString(String name)
name
- the case insensitive representation of the desired CompressorType