
C# | C# | Visual Basic | Visual Basic | Visual C++ | Visual C++ | F# | F# |
public class GZipStream : Stream
public class GZipStream : Stream
Public Class GZipStream Inherits Stream
Public Class GZipStream Inherits Stream
public ref class GZipStream : public Stream
public ref class GZipStream : public Stream
type GZipStream = class inherit Stream end
type GZipStream = class inherit Stream end

All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
![]() | GZipStream(Stream, CompressionMode) |
Create a GZipStream using the specified CompressionMode.
|
![]() | GZipStream(Stream, CompressionMode, CompressionLevel) |
Create a GZipStream using the specified CompressionMode and
the specified CompressionLevel.
|
![]() | GZipStream(Stream, CompressionMode, Boolean) |
Create a GZipStream using the specified CompressionMode, and
explicitly specify whether the stream should be left open after Deflation
or Inflation.
|
![]() | GZipStream(Stream, CompressionMode, CompressionLevel, Boolean) |
Create a GZipStream using the specified CompressionMode and the
specified CompressionLevel, and explicitly specify whether the
stream should be left open after Deflation or Inflation.
|
![]() | BeginRead(array<Byte>[]()[][], Int32, Int32, AsyncCallback, Object) | HostProtectionAttribute. (Inherited from Stream.) |
![]() | BeginWrite(array<Byte>[]()[][], Int32, Int32, AsyncCallback, Object) | HostProtectionAttribute. (Inherited from Stream.) |
![]() | BufferSize |
The size of the working buffer for the compression codec.
|
![]() | CanRead |
Indicates whether the stream can be read.
(Overrides Stream.CanRead.) |
![]() | CanSeek |
Indicates whether the stream supports Seek operations.
(Overrides Stream.CanSeek.) |
![]() | CanTimeout | (Inherited from Stream.) |
![]() | CanWrite |
Indicates whether the stream can be written.
(Overrides Stream.CanWrite.) |
![]() | Close()()()() | (Inherited from Stream.) |
![]() | Comment |
The comment on the GZIP stream.
|
![]() ![]() | CompressBuffer(array<Byte>[]()[][]) |
Compress a byte array into a new byte array using GZip.
|
![]() ![]() | CompressString(String) |
Compress a string into a byte array using GZip.
|
![]() | Crc32 |
The CRC on the GZIP stream.
|
![]() | CreateObjRef(Type) | (Inherited from MarshalByRefObject.) |
![]() | CreateWaitHandle()()()() | Obsolete. (Inherited from Stream.) |
![]() | Dispose(Boolean) |
Dispose the stream.
|
![]() | Dispose()()()() | (Inherited from Stream.) |
![]() | EndRead(IAsyncResult) | (Inherited from Stream.) |
![]() | EndWrite(IAsyncResult) | (Inherited from Stream.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | FileName |
The FileName for the GZIP stream.
|
![]() | Finalize()()()() | (Inherited from Object.) |
![]() | Flush()()()() |
Flush the stream.
(Overrides Stream.Flush()()()().) |
![]() | FlushMode |
This property sets the flush behavior on the stream.
|
![]() | GetHashCode()()()() | (Inherited from Object.) |
![]() | GetLifetimeService()()()() | (Inherited from MarshalByRefObject.) |
![]() | GetType()()()() | (Inherited from Object.) |
![]() | InitializeLifetimeService()()()() | (Inherited from MarshalByRefObject.) |
![]() | LastModified |
The last modified time for the GZIP stream.
|
![]() | Length |
Reading this property always throws a NotImplementedException.
(Overrides Stream.Length.) |
![]() | MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone()()()() | (Inherited from Object.) |
![]() | Position |
The position of the stream pointer.
(Overrides Stream.Position.) |
![]() | Read(array<Byte>[]()[][], Int32, Int32) |
Read and decompress data from the source stream.
(Overrides Stream.Read(array<Byte>[]()[][], Int32, Int32).) |
![]() | ReadByte()()()() | (Inherited from Stream.) |
![]() | ReadTimeout | (Inherited from Stream.) |
![]() | Seek(Int64, SeekOrigin) |
Calling this method always throws a NotImplementedException.
(Overrides Stream.Seek(Int64, SeekOrigin).) |
![]() | SetLength(Int64) |
Calling this method always throws a NotImplementedException.
(Overrides Stream.SetLength(Int64).) |
![]() | ToString()()()() | (Inherited from Object.) |
![]() | TotalIn | Returns the total number of bytes input so far. |
![]() | TotalOut | Returns the total number of bytes output so far. |
![]() ![]() | UncompressBuffer(array<Byte>[]()[][]) |
Uncompress a GZip'ed byte array into a byte array.
|
![]() ![]() | UncompressString(array<Byte>[]()[][]) |
Uncompress a GZip'ed byte array into a single string.
|
![]() | Write(array<Byte>[]()[][], Int32, Int32) |
Write data to the stream.
(Overrides Stream.Write(array<Byte>[]()[][], Int32, Int32).) |
![]() | WriteByte(Byte) | (Inherited from Stream.) |
![]() | WriteTimeout | (Inherited from Stream.) |

The GZipStream is a Decorator on a Stream. It adds GZIP compression or decompression to any stream.
Like the System.IO.Compression.GZipStream in the .NET Base Class Library, the Keyoti.RapidSpell.Compression.GZipStream can compress while writing, or decompress while reading, but not vice versa. The compression method used is GZIP, which is documented in IETF RFC 1952, "GZIP file format specification version 4.3".
A GZipStream can be used to decompress data (through Read()) or to compress data (through Write()), but not both.
If you wish to use the GZipStream to compress data, you must wrap it around a write-able stream. As you call Write() on the GZipStream, the data will be compressed into the GZIP format. If you want to decompress data, you must wrap the GZipStream around a readable stream that contains an IETF RFC 1952-compliant stream. The data will be decompressed as you call Read() on the GZipStream.
Though the GZIP format allows data from multiple files to be concatenated together, this stream handles only a single segment of GZIP format, typically representing a single file.
This class is similar to ZlibStream and DeflateStream. ZlibStream handles RFC1950-compliant streams. DeflateStream handles RFC1951-compliant streams. This class handles RFC1952-compliant streams.

Object | |||
![]() | MarshalByRefObject | ||
![]() | Stream | ||
![]() | GZipStream |

Assembly: Keyoti4.RapidSpell.WPF (Module: Keyoti4.RapidSpell.WPF.dll) Version: 3.1.16.1214