Xceed .NET Libraries Documentation
XceedCompressedStream Class
Members 


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace : XceedCompressedStream Class
Represents a pass-through stream that reads and writes Xceed formatted compressed data.
Syntax
'Declaration
 
Public Class XceedCompressedStream 

   Inherits FormattedCompressedStream

   Implements System.IDisposable 
'Usage
 
Dim instance As XceedCompressedStream
public class XceedCompressedStream : FormattedCompressedStream, System.IDisposable  
Remarks

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

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

To make sure that the header and footer are written, you can call FormattedCompressedStream.Write with 0 bytes. If neither FormattedCompressedStream.Write nor FormattedCompressedStream.Read has been called, the XceedCompressedStream does not know if it is reading or writing. To compress or decompress data compatible with the XceedCompression object of the ActiveX Xceed Zip Compression Library, use the XceedCompressedStreamEx class instead.
Example
Compressing stream data
Decompressing stream data
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.IO.Stream
         Xceed.Compression.Formats.FormattedCompressedStream
            Xceed.Compression.Formats.XceedCompressedStream
               Xceed.Compression.Formats.XceedCompressedStreamEx

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

XceedCompressedStream Members
Xceed.Compression.Formats Namespace
Introduction to the formatted compressed stream classes