DeflaterOutputStream Constructor (Stream, Deflater, Int32)

SharpZip Compression Library

SharpZip Compression Library

DeflaterOutputStream Constructor (Stream, Deflater, Int32)

Creates a new DeflaterOutputStream with the given Deflater and buffer size.

public DeflaterOutputStream(
   Stream baseOutputStream,
   Deflater deflater,
   int bufsize
);

Parameters

baseOutputStream
The output stream where deflated output is written.
deflater
The underlying deflater to use
bufsize
The buffer size to use when deflating

Exceptions

Exception Type Condition
ArgumentOutOfRangeException bufsize is less than or equal to zero.
ArgumentException baseOutputStream does not support writing
ArgumentNullException deflater instance is null

See Also

DeflaterOutputStream Class | ICSharpCode.SharpZipLib.Zip.Compression.Streams Namespace | DeflaterOutputStream Constructor Overload List