DeflaterOutputStream Constructor (Stream, Deflater, Int32)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

DeflaterOutputStream Constructor (Stream, Deflater, Int32)

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

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

Parameters

baseOutputStream
The output stream where deflated output is written.
deflater
The underlying deflater to use
bufferSize
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