Creates a new instance of GzipCompressionStream class.

Namespace:  Rebex.IO.Compression.Streams
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Sub New ( _
	inner As Stream, _
	mode As OpenMode, _
	compressionLevel As Integer, _
	fileName As String, _
	lastWriteTime As Nullable(Of DateTime), _
	comment As String _
)
C#
public GzipCompressionStream(
	Stream inner,
	OpenMode mode,
	int compressionLevel,
	string fileName,
	Nullable<DateTime> lastWriteTime,
	string comment
)

Parameters

inner
Type: System.IO..::..Stream
Underlying stream that contains decompressed data or to which compressed data is written.
mode
Type: Rebex.IO.Compression.Streams..::..OpenMode
Whether data will be read from or written to the underlying stream.
compressionLevel
Type: System..::..Int32
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.
fileName
Type: System..::..String
A file name associated with compressed data.
lastWriteTime
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
A last modification time associated with compressed data.
comment
Type: System..::..String
A comment associated with compressed data.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also