|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<CompressionLevel>
org.hd.d.pg2k.svrCore.CompressionLevel
public enum CompressionLevel
A ranked series of compression methods/levels used in PG2K. This applies to such things as tunnel-frame content and HTTP transport encodings.
Higher numeric levels potentially give greater compression at potentially higher resource cost (especially in the compressor), though YMMV.
The order of elements is from lowest to highest compression.
| Enum Constant Summary | |
|---|---|
BZIP2
BZIP2-style compression; more expensive than ZIP (maybe 5x CPU) but more effective on some data sets. |
|
LZMA
LZMA (7-Zip-style) compression; more expensive than ZIP and less tested, but much more effective on some data sets. |
|
NONE
No compression, thus free to compress/decompress but possibly expensive to store or transmit. |
|
PPM
PPM compression; very expensive in CPU and memory, but about the best compression available. |
|
ZIP
GZIP/deflate/zlib-style compression; widely used and generally cheap and effective. |
|
| Field Summary | |
|---|---|
private int |
level
The "level", higher meaning generally better and more expensive; 0 indicates none. |
| Method Summary | |
|---|---|
int |
getLevel()
Get the "level", higher meaning generally better and more expensive; 0 indicates none. |
static CompressionLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CompressionLevel[] |
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 CompressionLevel NONE
public static final CompressionLevel ZIP
public static final CompressionLevel BZIP2
public static final CompressionLevel LZMA
public static final CompressionLevel PPM
| Field Detail |
|---|
private final int level
| Method Detail |
|---|
public static CompressionLevel[] values()
for (CompressionLevel c : CompressionLevel.values()) System.out.println(c);
public static CompressionLevel 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 name
java.lang.NullPointerException - if the argument is nullpublic final int getLevel()
|
DHD Multimedia Gallery V1.50.55 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||