.compression().constants().strategy()
Access:
public

This is the compession strategy contants class. It contains constants that can be used in the strategy setting.

Summary

Name
Description
Returns the DEFAULT_STRATEGY constant.
Returns the FILTERED constant.
Returns the FIXED constant.
Returns the HUFFMAN_ONLY constant.
rle
Returns the RLE constant.

Functions

.default()
Access:
public
Summary:
Returns the DEFAULT_STRATEGY constant.

This is the DEFAULT_STRATEGY constant. This strategy is optimized for normal data. It combines Huffman's compression with the standard text compression.

Returns

Type
Constant
Description
Z_DEFAULT_STRATEGY
.filtered()
Access:
public
Summary:
Returns the FILTERED constant.

This is the FILTERED constant. This strategy is optimized for data that is produced by a filter. Meaning it is one kind of data.

Returns

Type
Constant
Description
Z_FILTERED
.fixed()
Access:
public
Summary:
Returns the FIXED constant.

This is the FIXED constant. This strategy is optimized for simpler applications and is optimized for shorter strings, as it doesn't use Huffman's dynamic codes.

Returns

Type
Constant
Description
Z_FIXED
.huffman()
Access:
public
Summary:
Returns the HUFFMAN_ONLY constant.

This is the HUFFMAN_ONLY constant. This strategy is optimized for data you don't think contain any similar data, since it won't do any string matching.

Returns

Type
Constant
Description
Z_HUFFMAN_ONLY
.rle()
Access:
public
Summary:
Returns the RLE constant.

This is the RLE constant. This strategy is optimized for PNG images and is designed to be almost as fust as HUFFMAN_ONLY

Returns

Type
Constant
Description
Z_RLE