Xceed Real-Time Zip for .NET Documentation
GZipCompressedStream Class
Members 


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

   Inherits FormattedCompressedStream

   Implements System.IDisposable 
'Usage
 
Dim instance As GZipCompressedStream
public class GZipCompressedStream : 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 GZipCompressedStream 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 Write with 0 bytes. If neither Write nor Read has been called, the GZipCompressedStream does not know if it is reading or writing.
Example
{D7587446-242C-487A-A86E-9EB2DDB7E26C}
{1FAEFCFC-934B-4992-B7BD-3375936D4F0D}
Inheritance Hierarchy

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

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

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