GZipStream Members
.NET Framework 3.5
Provides methods and properties used to compress and decompress streams.
The GZipStream type exposes the following members.
| Name | Description | |
|---|---|---|
|
BeginRead | Begins an asynchronous read operation. (Overrides Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object).) |
|
BeginWrite | Begins an asynchronous write operation. (Overrides Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object).) |
|
Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. (Inherited from Stream.) |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
CreateWaitHandle | Obsolete. Allocates a WaitHandle object. (Inherited from Stream.) |
|
Dispose | Overloaded. |
|
EndRead | Waits for the pending asynchronous read to complete. (Overrides Stream.EndRead(IAsyncResult).) |
|
EndWrite | Handles the end of an asynchronous write operation. (Overrides Stream.EndWrite(IAsyncResult).) |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Flush | Flushes the contents of the internal buffer of the current GZipStream object to the underlying stream. (Overrides Stream.Flush().) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
MemberwiseClone | Overloaded. |
|
Read | Reads a number of decompressed bytes into the specified byte array. (Overrides Stream.Read(Byte[], Int32, Int32).) |
|
ReadByte | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Inherited from Stream.) |
|
Seek | This property is not supported and always throws a NotSupportedException. (Overrides Stream.Seek(Int64, SeekOrigin).) |
|
SetLength | This property is not supported and always throws a NotSupportedException. (Overrides Stream.SetLength(Int64).) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
Write | Writes compressed bytes to the underlying stream from the specified byte array. (Overrides Stream.Write(Byte[], Int32, Int32).) |
|
WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from Stream.) |
| Name | Description | |
|---|---|---|
|
BaseStream | Gets a reference to the underlying stream. |
|
CanRead | Gets a value indicating whether the stream supports reading while decompressing a file. (Overrides Stream.CanRead.) |
|
CanSeek | Gets a value indicating whether the stream supports seeking. (Overrides Stream.CanSeek.) |
|
CanTimeout | Gets a value that determines whether the current stream can time out. (Inherited from Stream.) |
|
CanWrite | Gets a value indicating whether the stream supports writing. (Overrides Stream.CanWrite.) |
|
Length | This property is not supported and always throws a NotSupportedException. (Overrides Stream.Length.) |
|
Position | This property is not supported and always throws a NotSupportedException. (Overrides Stream.Position.) |
|
ReadTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from Stream.) |
|
WriteTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from Stream.) |