Xceed Streaming Compression Library Documentation
CompressionMethod property
Xceed Streaming Compression control reference > Compression Format objects > XceedBZip2CompressionFormat object > CompressionMethod property

Description

The CompressionMethod property allows you to specify which compression or decompression algorithm will be used by the library. You must assign a Compression Method object to this property.

This property is read-only except when it belongs to the XceedStandardCompressionFormat object, because that format is the only one that supports settable/variable compression methods. The others are predefined to use either Deflate or BZip2 .

Data type

A Compression Method object

Possible values
 

Value Description
XceedDeflateCompressionMethod  Use the Deflate compression algorithm.
XceedDeflate64CompressionMethod Use the Deflate64 compression algorithm
XceedBWTCompressionMethod  Use the BZip2 compression algorithm.
XceedStoreCompressionMethod  No compression. Stores data in uncompressed format.

Default value

XceedDeflateCompressionMethod for the XceedStandardCompressionFormat. For other Compression Format objects, see their descriptions to find out what compression algorithm they use.

Applicable methods

Compress, Decompress, ProcessFile, ReadFile, WriteFile