GzipCompressionStream Constructor
Namespace: Rebex.IO.Compression.Streams
Assembly: Rebex.Zip.dll (version 7.0.9083)
GzipCompressionStream(Stream, OpenMode)
Creates a new instance of GzipCompressionStream class.
Declaration
public GzipCompressionStream(Stream inner, OpenMode mode)
Parameters
Type | Name | Description |
---|---|---|
Stream | inner | Underlying stream that contains decompressed data or to which compressed data is written. |
OpenMode | mode | Whether data will be read from or written to the underlying stream. |
GzipCompressionStream(Stream, OpenMode, Int32)
Creates a new instance of GzipCompressionStream class.
Declaration
public GzipCompressionStream(Stream inner, OpenMode mode, int compressionLevel)
Parameters
Type | Name | Description |
---|---|---|
Stream | inner | Underlying stream that contains decompressed data or to which compressed data is written. |
OpenMode | mode | Whether data will be read from or written to the underlying stream. |
Int32 | compressionLevel | Compression level. Possible values are 0-9, where 0 means no compression (fastest) and 9 means best compression (slowest). 6 (medium compression and speed) is a default value. |
GzipCompressionStream(Stream, OpenMode, String)
Creates a new instance of GzipCompressionStream class.
Declaration
public GzipCompressionStream(Stream inner, OpenMode mode, string fileName)
Parameters
Type | Name | Description |
---|---|---|
Stream | inner | Underlying stream that contains decompressed data or to which compressed data is written. |
OpenMode | mode | Whether data will be read from or written to the underlying stream. |
String | fileName | A file name associated with compressed data. |
GzipCompressionStream(Stream, OpenMode, Int32, String, Nullable<DateTime>, String)
Creates a new instance of GzipCompressionStream class.
Declaration
public GzipCompressionStream(Stream inner, OpenMode mode, int compressionLevel, string fileName, DateTime? lastWriteTime, string comment)
Parameters
Type | Name | Description |
---|---|---|
Stream | inner | Underlying stream that contains decompressed data or to which compressed data is written. |
OpenMode | mode | Whether data will be read from or written to the underlying stream. |
Int32 | compressionLevel | Compression level. Possible values are 0-9, where 0 means no compression (fastest) and 9 means best compression (slowest). 6 (medium compression and speed) is a default value. |
String | fileName | A file name associated with compressed data. |
Nullable<DateTime> | lastWriteTime | A last modification time associated with compressed data. |
String | comment | A comment associated with compressed data. |