Xceed Real-Time Zip for .NET Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / ZLibCompressedStream Class
Members


In This Topic
    ZLibCompressedStream Class
    In This Topic
    Represents a pass-through stream that reads and writes ZLib formatted compressed data.
    Syntax
    'Declaration
     
    Public Class ZLibCompressedStream 
       Inherits FormattedCompressedStream
       Implements System.IDisposable 
    'Usage
     
    Dim instance As ZLibCompressedStream
    public class ZLibCompressedStream : 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 ZLibCompressedStream 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 ZLibCompressedStream does not know if it is reading or writing.
    Example
    {DDCCF481-2900-4DF3-91AF-C0092EB9E23D}
    {8EB6DDBC-CC91-4372-854A-53861A1C7A5F}
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.IO.Stream
             Xceed.Compression.Formats.FormattedCompressedStream
                Xceed.Compression.Formats.ZLibCompressedStream

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertyGets a boolean value indicating whether the current stream supports reading. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public PropertyOverridden.   
    Public Property (Inherited from System.IO.Stream)
    Public PropertyGets a boolean value indicating whether the current stream supports writing. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public Property (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public PropertyGets the length, in bytes, of the stream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public PropertyGets or sets the position within the current stream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public Property (Inherited from System.IO.Stream)
    Public PropertyGets or sets a boolean value indicating if the stream is responsible for closing its inner stream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public Property (Inherited from System.IO.Stream)
    Top
    Public Methods
     NameDescription
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public Methodstatic (Shared in Visual Basic)Overloaded. Compresses an array of bytes using the ZLib compression format.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Methodstatic (Shared in Visual Basic)Overloaded. Decompresses an array of ZLib formatted compressed bytes.  
    Public MethodOverloaded. Releases all resources used by the FormattedCompressedStream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodClears all buffers for this stream and causes any buffered data to be written to the underlying compressed stream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodReads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodSets the position within the current stream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public MethodSets the length of the current stream. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public MethodWrites a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from System.IO.Stream)
    Protected MethodAllows the FormattedCompressedStream object to attempt to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected Method (Inherited from System.IO.Stream)
    Protected MethodOverridden. This method is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodOverridden. This method is reserved for internal use and is not intended to be used directly from your code.  
    Protected Method (Inherited from Xceed.Compression.Formats.FormattedCompressedStream)
    Protected MethodOverridden. This method is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodOverridden. This method is reserved for internal use and is not intended to be used directly from your code.  
    Top
    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

    ZLibCompressedStream Members
    Xceed.Compression.Formats Namespace
    {916E7D43-79A0-4455-99D2-BC570DE4F2F3}