Xceed Streaming Compression Library Documentation
About the Compression Method objects
Xceed Streaming Compression control reference > About the Compression Method objects

Introduction

A Compression Method object represents a "raw" data compression algorithm. Objects of this type are usually assigned to a Compression Format object's CompressionMethod property in order to determine the underlying compression method to use to compress or decompress data.

Currently, only the XceedStandardCompressionFormat's CompressionMethod property can be changed (all others are read-only) because this is the only format that supports multiple compression algorithms. All others force either Deflate or BZip2 underlying compression.

Another (less common) use of a Compression Method object is to assign it directly to the library's CompressionFormat property, so that the library can read or write "raw" Deflate or BZip2 compressed data.

Each Compression Method object has its own specific properties depending on the particularities of the compression method it represents. You can set these properties to set the low-level parameters of the compression algorithm.

How to use

After instantiating the Compression Method object you need and optionally setting its properties, you must assign it to a Compression Format object's CompressionMethod property or to the library's CompressionFormat property.

Available Encoding Method objects

XceedDeflateCompressionMethod  

XceedDeflate64CompressionMethod

XceedBWTCompressionMethod     

XceedStoreCompressionMethod