Xceed Streaming Compression Library Documentation
CompressionFormat property
Xceed Streaming Compression control reference > Properties > CompressionFormat property

Description

The CompressionFormat property allows you to specify the Compression Format object that the library will use to determine the data format to compress to or to decompress from.

When the library is compressing data, the value of this property determines the desired output format of the compressed data. The various supported data formats mainly differ by the type of compression algorithm the library will use to compress the data as well as which checksum (such as Adler-32 or CRC or none) type to embed into the compressed data.

When the library is decompressing data, the value of this property informs the library which format the data to decompress was created with.

It is also possible to assign a Compression Method object to this property, if you need to read or write data as "raw" Deflate , Deflate64 or BZip2 compressed data without any header information or checksums. In Java's java.util.zip class for example, this is equivalent to using a DeflateOutputStream or an InflateInputStream.

Data type

A Compression Format or Compression Method object

Possible values
 

Value Description
XceedBZip2CompressionFormat   Compress or decompress in BZip2 format.
XceedGZipCompressionFormat   Compress or decompress in GZip2 format.
XceedStandardCompressionFormat Compress or decompress in Xceed Standard format.
XceedZip3CompressionFormat   Compress or decompress in Xceed Zip 3.x format.
XceedZlibCompressionFormat   Compress or decompress in Zlib library format.
XceedDeflateCompressionMethod   Compress or decompress raw Deflate data.
XceedDeflate64CompressionMethod Compress or decompress raw Deflate64 data.
XceedBWTCompressionMethod   Compress or decompress raw BWT data.

Default value

XceedStandardCompressionFormat

Applicable methods

Compress, Decompress, ProcessFile, ReadFile, WriteFile