Keyoti RapidSpell Desktop .NET API Docs
DeflateStream Constructor (stream, mode, leaveOpen)
APIKeyoti.RapidSpell.CompressionDeflateStreamDeflateStream(Stream, CompressionMode, Boolean)
Keyoti RapidSpell Desktop .NET
Create a DeflateStream using the specified CompressionMode, and explicitly specify whether the stream should be left open after Deflation or Inflation.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public DeflateStream(
	Stream stream,
	CompressionMode mode,
	bool leaveOpen
)
public DeflateStream(
	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:
DeflateStream(
	Stream^ stream, 
	CompressionMode mode, 
	bool leaveOpen
)
public:
DeflateStream(
	Stream^ stream, 
	CompressionMode mode, 
	bool leaveOpen
)
new : 
        stream : Stream * 
        mode : CompressionMode * 
        leaveOpen : bool -> DeflateStream
new : 
        stream : Stream * 
        mode : CompressionMode * 
        leaveOpen : bool -> DeflateStream
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 DeflateStream will compress or decompress.
leaveOpen (Boolean)
true if the application would like the stream to remain open after inflation/deflation.
Remarks

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 memory stream that will be re-read after compression. Specify true for the leaveOpen parameter to leave the stream open.

The DeflateStream will use the default compression level.

See the other overloads of this constructor for example code.

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