Provides a stream that uses specified compressed data format to compress data. If opened for writing it compresses specified data and writes the compressed data into an underlying stream. If opened for reading it reads an uncompressed data from the underlying stream and returns a compressed data. Unlike similar class present in .NET Framework 2.0, this one actually makes it possible to use Flush when compressing data to make sure all data written to the stream have been written into the underlying stream as well.

Namespace:  Rebex.IO.Compression.Streams
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Class CompressionStream _
	Inherits Stream
C#
public class CompressionStream : Stream

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    System.IO..::..Stream
      Rebex.IO.Compression.Streams..::..CompressionStream
        Rebex.IO.Compression.Streams..::..GzipCompressionStream

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also