Xceed Zip Compression Library Documentation
CompressionMethod property
Xceed Zip control reference > Xceed Zip control properties > CompressionMethod property

The CompressionMethod property allows you to specify which compression algorithm should be used by the library when compressing data.

Data type

xcdCompressionMethod

Possible values

Value Meaning
xcmStored   No compression or decompression should be applied at all.
xcmDeflated 

Use the Deflate compression method.

This is the standard compression and decompression algorithm used by the PKZIP 2.04g format. This algorithm provides fast compression and decompression speeds and achieves pretty good compression.

xcmDeflated64

Use the Deflate64 compression method.

This method takes longer to compress data than Deflate, but it provides better compression.

xcmBZip2  

Use the BZip2 compression method.

A BWT-based block-sorting algorithm used in zip files created with WinZip 11.0 and up. An excellent alternative to Deflate and Deflate64 when speed can be traded off.

xcmLZMA

Use the LZMA compression method.

The Lempel-Ziv-Markov chain-Algorithm (LZMA) uses an improved and optimized version of the Lempel-Ziv (LZ77) compression algorithm, backed by a Markov chain range encoder. It uses a variable dictionary size. Used in zip files created with WinZip 12.0 and up.

LZMA typically provides much better compression than the Deflate and Deflate64 algorithms at the expense of speed and memory usage when compressing. It also typically provides compression ratios a little better than BZip2/BWT and PPMd while being a little faster.

Compression usually requires (<dictionary size> * 11.5 + 6 MB).

Decompression is usually fast and requires <dictionary size> + 16K.

xcmBurrowsWheeler 

Use the BWT compression method.

The raw BWT block-sorting algorithm. Produces smaller compressed output than the BZip2 method, but is not compatible with WinZip. It is compatible with zip files created using the BWT compression method offered by Xceed Zip for .NET.

Users of the Xceed Zip Self-Extractor Module can use the BWT method by using the XCDSFXBZ.BIN binary.

Default value

xcmDeflated

Declaration (DLL API)  

UINT XzGetCompressionMethod( HXCEEDZIP hZip );
void XzSetCompressionMethod( HXCEEDZIP hZip, UINT uValue );

Applicable methods

Zip, Convert