|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CompressorType>
org.crosswire.common.compress.CompressorType
public enum CompressorType
An Enumeration of the possible Compressions.
The GNU Lesser General Public License for details.
Enum Constant Summary | |
---|---|
BZIP2
|
|
GZIP
|
|
LZSS
|
|
XZ
|
|
ZIP
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- 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
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |