Creates a new instance of CompressionStream 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, _
	format As CompressionFormat, _
	method As CompressionMethod, _
	compressionLevel As Integer _
)
C#
public CompressionStream(
	Stream inner,
	OpenMode mode,
	CompressionFormat format,
	CompressionMethod method,
	int compressionLevel
)

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.
format
Type: Rebex.IO.Compression.Streams..::..CompressionFormat
Format of the compressed data.
method
Type: Rebex.IO.Compression..::..CompressionMethod
Compression method of the particular data format.
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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also