Keyoti RapidSpell Desktop .NET API Docs
ZlibStream Constructor (stream, mode, leaveOpen)
APIKeyoti.RapidSpell.CompressionZlibStreamZlibStream(Stream, CompressionMode, Boolean)
Keyoti RapidSpell Desktop .NET
Create a ZlibStream using the specified CompressionMode, and explicitly specify whether the captive stream should be left open after Deflation or Inflation.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public ZlibStream(
	Stream stream,
	CompressionMode mode,
	bool leaveOpen
)
public ZlibStream(
	Stream stream,
	CompressionMode mode,
	bool leaveOpen
)
Public Sub New ( 
	stream As Stream,
	mode As CompressionMode,
	leaveOpen As Boolean
)
Public Sub New ( 
	stream As Stream,
	mode As CompressionMode,
	leaveOpen As Boolean
)
public:
ZlibStream(
	Stream^ stream, 
	CompressionMode mode, 
	bool leaveOpen
)
public:
ZlibStream(
	Stream^ stream, 
	CompressionMode mode, 
	bool leaveOpen
)
new : 
        stream : Stream * 
        mode : CompressionMode * 
        leaveOpen : bool -> ZlibStream
new : 
        stream : Stream * 
        mode : CompressionMode * 
        leaveOpen : bool -> ZlibStream
Parameters
stream (Stream)
The stream which will be read or written. This is called the "captive" stream in other places in this documentation.
mode (CompressionMode)
Indicates whether the ZlibStream will compress or decompress.
leaveOpen (Boolean)
true if the application would like the stream to remain open after inflation/deflation.
Remarks

When mode is CompressionMode.Compress, the ZlibStream will use the default compression level.

This constructor allows the application to request that the captive stream remain open after the deflation or inflation occurs. By default, after Close() is called on the stream, the captive stream is also closed. In some cases this is not desired, for example if the stream is a MemoryStream that will be re-read after compression. Specify true for the leaveOpen parameter to leave the stream open.

See the other overloads of this constructor for example code.

Assembly: Keyoti.RapidSpell.NET4 (Module: Keyoti.RapidSpell.NET4.dll) Version: 6.2.21.412