Xceed .NET Libraries Documentation
CompressedStream Class
Members 


Xceed.Compression Assembly > Xceed.Compression Namespace : CompressedStream Class
Pass-through stream that applies compression and decompression to an inner stream.
Syntax
'Declaration
 
Public Class CompressedStream 
   Inherits System.IO.Stream
   Implements System.IDisposable 
'Usage
 
Dim instance As CompressedStream
public class CompressedStream : System.IO.Stream, System.IDisposable  
Remarks

Compression is applied to data being written to the stream, and decompression is performed when data is read from the stream.

The compression engine itself is not built into the CompressedStream class. Instead, user-supplied Compressor and Decompressor classes are used.

It is possible to implement your own compression algorithm by implementing classes derived from Compressor and Decompressor.

By default, closing the CompressedStream  will also close the inner stream. This behavior can be modified by setting the Transient property to true%.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.IO.Stream
         Xceed.Compression.CompressedStream

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompressedStream Members
Xceed.Compression Namespace