ZLibOption class

Exposes ZLib options for input parameters.

Exposes ZLib options for input parameters.

See http://www.zlib.net/manual.html for more documentation.

Constructors

ZLibOption()

Constants

MIN_WINDOW_BITS = 8
Minimal value for ZLibCodec.windowBits, ZLibEncoder.windowBits and ZLibDecoder.windowBits.
MAX_WINDOW_BITS = 15
Maximal value for ZLibCodec.windowBits, ZLibEncoder.windowBits and ZLibDecoder.windowBits.
DEFAULT_WINDOW_BITS = 15
Default value for ZLibCodec.windowBits, ZLibEncoder.windowBits and ZLibDecoder.windowBits.
MIN_LEVEL = -1
Minimal value for ZLibCodec.level, ZLibEncoder.level and ZLibDecoder.level.
MAX_LEVEL = 9
Maximal value for ZLibCodec.level, ZLibEncoder.level and ZLibDecoder.level.
DEFAULT_LEVEL = 6
Default value for ZLibCodec.level, ZLibEncoder.level and ZLibDecoder.level.
MIN_MEM_LEVEL = 1
Minimal value for ZLibCodec.memLevel, ZLibEncoder.memLevel and ZLibDecoder.memLevel.
MAX_MEM_LEVEL = 9
Maximal value for ZLibCodec.memLevel, ZLibEncoder.memLevel and ZLibDecoder.memLevel.
DEFAULT_MEM_LEVEL = 8
Default value for ZLibCodec.memLevel, ZLibEncoder.memLevel and ZLibDecoder.memLevel.
STRATEGY_FILTERED = 1
Recommended strategy for data produced by a filter (or predictor)
STRATEGY_HUFFMAN_ONLY = 2
Use this strategy to force Huffman encoding only (no string match)
STRATEGY_RLE = 3
Use this strategy to limit match distances to one (run-length encoding)
STRATEGY_FIXED = 4
This strategy prevents the use of dynamic Huffman codes, allowing for a simpler decoder
STRATEGY_DEFAULT = 0
Recommended strategy for normal data