public static enum ZlibCompressor.CompressionStrategy extends Enum<ZlibCompressor.CompressionStrategy>
枚举常量和说明 |
---|
DEFAULT_STRATEGY
Default compression strategy.
|
FILTERED
Compression strategy best used for data consisting mostly of small
values with a somewhat random distribution.
|
FIXED
Compression strategy to prevent the use of dynamic Huffman codes,
allowing for a simpler decoder for special applications.
|
HUFFMAN_ONLY
Compression strategy for Huffman coding only.
|
RLE
Compression strategy to limit match distances to one
(run-length encoding).
|
限定符和类型 | 方法和说明 |
---|---|
static ZlibCompressor.CompressionStrategy |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ZlibCompressor.CompressionStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ZlibCompressor.CompressionStrategy FILTERED
public static final ZlibCompressor.CompressionStrategy HUFFMAN_ONLY
public static final ZlibCompressor.CompressionStrategy RLE
public static final ZlibCompressor.CompressionStrategy FIXED
public static final ZlibCompressor.CompressionStrategy DEFAULT_STRATEGY
public static ZlibCompressor.CompressionStrategy[] values()
for (ZlibCompressor.CompressionStrategy c : ZlibCompressor.CompressionStrategy.values()) System.out.println(c);
public static ZlibCompressor.CompressionStrategy valueOf(String name)
name
- 要返回的枚举常量的名称。Copyright © 2009 The Apache Software Foundation