Xceed .NET Libraries Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / XceedCompressedStreamEx Class
Members


In This Topic
    XceedCompressedStreamEx Class
    In This Topic
    Represents a pass-through stream that reads and writes Xceed formatted compressed data. Use this class to decompress or compress data compatible with the ActiveX Xceed Zip Compression Library (XceedCompression object).
    Syntax
    'Declaration
     
    Public Class XceedCompressedStreamEx 
       Inherits XceedCompressedStream
       Implements System.IDisposable 
    'Usage
     
    Dim instance As XceedCompressedStreamEx
    public class XceedCompressedStreamEx : XceedCompressedStream, 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. The Adler32 of this class is initialized to 1 rather than 0 as with the XceedCompressedStream class.
    Example
    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