Search: 
Available in: ZIP
ZipStream Component [IP*Works! ZIP V7]

Properties   Methods   Events   Configuration Settings  

The ZipStream component is used to perform compression or decompression on streams.

NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.

Remarks

The ZipStream component operates by producing streams that read or write compressed data, as appropriate. The GetDecompressionStream and GetCompressionStream methods are used to retrieve streams that read or write compressed data, as appropriate; the underlying stream should be passed to either method as a parameter.

The component may be used to read and write the zlib format, as specified in RFC 1950, deflate, as specified in RFC 1951, or gzip, as specified in RFC 1952. In all cases the "deflate" compression algorithm described in RFC 1951 is used for compression.

For additional ease of use, the CompressData and DecompressData methods are also provided to compress or decompress byte arrays with a single line of code.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for complete descriptions.

CloseBaseStream Whether or not to close the underlying stream.
CompressionLevel The compression level to use.
StreamFormat The stream format to use.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for complete descriptions.

CompressData Compresses a byte array.
Config Sets or retrieves a component configuration setting.
DecompressData Deompresses a byte array.
GetCompressionStream Creates an output stream used to write compressed data.
GetDecompressionStream Creates an input stream used to read data from a compressed stream.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for complete descriptions.

| About | Privacy Policy | Terms of Use |
© Copyright 2008 /n software inc.