System.IO.Compression.GZipStream Members

The members of System.IO.Compression.GZipStream are listed below.

See Also: Inherited members from System.IO.Stream

Public Constructors

Initializes a new instance of the System.IO.Compression.GZipStream class by using the specified stream and compression level.

Initializes a new instance of the System.IO.Compression.GZipStream class by using the specified stream and compression mode.

Initializes a new instance of the System.IO.Compression.GZipStream class by using the specified stream and compression level, and optionally leaves the stream open.

Initializes a new instance of the System.IO.Compression.GZipStream class by using the specified stream and compression mode, and optionally leaves the stream open.

Public Properties

[read-only]
BaseStreamSystem.IO.Stream.

Gets a reference to the underlying stream.

[read-only]
override
CanReadbool.

Gets a value indicating whether the stream supports reading while decompressing a file.

[read-only]
override
CanSeekbool.

Gets a value indicating whether the stream supports seeking.

[read-only]
override
CanWritebool.

Gets a value indicating whether the stream supports writing.

[read-only]
override
Lengthlong.

This property is not supported and always throws a NotSupportedException.

override
Positionlong.

This property is not supported and always throws a NotSupportedException.

Public Methods

override
BeginRead(byte[], int, int, AsyncCallback, object) : IAsyncResult

Begins an asynchronous read operation. (Consider using the System.IO.Stream.ReadAsync(Byte[], int, int) method instead; see the Remarks section.)

override
BeginWrite(byte[], int, int, AsyncCallback, object) : IAsyncResult

Begins an asynchronous write operation. (Consider using the System.IO.Stream.WriteAsync(Byte[], int, int) method instead; see the Remarks section.)

override
EndRead(IAsyncResult) : int

Waits for the pending asynchronous read to complete. (Consider using the the System.IO.Stream.ReadAsync(Byte[], int, int) method instead; see the Remarks section.)

override
EndWrite(IAsyncResult)

Handles the end of an asynchronous write operation. (Consider using the System.IO.Stream.WriteAsync(Byte[], int, int) method instead; see the Remarks section.)

override
Flush()

The current implementation of this method has no functionality.

override
Read(byte[], int, int) : int

Reads a number of decompressed bytes into the specified byte array.

override
Seek(long, System.IO.SeekOrigin) : long

This property is not supported and always throws a NotSupportedException.

override
SetLength(long)

This property is not supported and always throws a NotSupportedException.

override
Write(byte[], int, int)

Writes compressed bytes to the underlying stream from the specified byte array.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.IO.Compression.GZipStream and optionally releases the managed resources.