GzipDecompressionStream Class
Namespace: Rebex.IO.Compression.Streams
Assembly: Rebex.Zip.dll (version 7.0.9147)
Provides a stream that uses RFC 1952 - GZIP implementation to decompress data. If opened for writing it decompresses specified data and writes the decompressed data into an underlying stream. If opened for reading it reads a compressed data from the underlying stream and returns a decompressed data.
Syntax
public class GzipDecompressionStream : DecompressionStream, IAsyncDisposable, IDisposable
Inherited Members
Constructors
Name | Description |
---|---|
Gzip |
Creates a new instance of Gzip |
Properties
Name | Description |
---|---|
Can |
Gets a value indicating whether the stream supports reading.
Inherited from Decompression |
Can |
Gets a value indicating whether the stream supports seeking.
Inherited from Decompression |
Can |
Gets a value indicating whether the stream supports writing.
Inherited from Decompression |
Comment | Gets a comment stored in GZIP header. |
File |
Gets a file name stored in GZIP header. |
Last |
Gets a last write time stored in GZIP header. |
Length | This property is not supported by the Decompression |
Position | This property is not supported by the Decompression |
Methods
Name | Description |
---|---|
Dispose(Boolean) | Closes the underlying stream.
Inherited from Decompression |
Flush() | Causes any buffered data to be written to the underlying stream.
Inherited from Decompression |
Read(Byte[], Int32, Int32) | Reads data from the underlying stream, decompressing them during the process.
Inherited from Decompression |
Read |
Reads the GZIP header from the stream position and fills the class properties with values read from the GZIP header.
This method is not intended for seeking to next GZIP header position.
This method can be called only when the stream was just opened (and no method was called already)
or when a file was read completely (the Read(Byte[], Int32, Int32) method reads no data).
Calling this method before the whole file has been read throws an Invalid |
Seek(Int64, Seek |
This method is not supported by the Decompression |
Set |
This method is not supported by the Decompression |
Write(Byte[], Int32, Int32) | Writes a sequence of bytes into the stream. The sequence will be decompressed and the result written
into the underlying stream.
Inherited from Decompression |