DotNetCompression Class Reference for Windows Phone
CreateOutputStream(Stream,Int32,Boolean) Method






The underlying stream to which to write the compressed bytes.
Specifies the compression level to be used when compressing. It may be set to an integer from 1 to 9. Generally, lower compression levels result in faster performance while higher compression levels result in better compression.
If True then the underlying stream is left open when this stream is closed, otherwise the underlying stream is closed when this stream is closed.
Creates an output stream that compresses the data and writes compressed bytes into the specified underlying stream.
Syntax
'Declaration
 
Public Overloads Overrides Function CreateOutputStream( _
   ByVal output As System.IO.Stream, _
   ByVal compressionLevel As System.Integer, _
   ByVal leaveOpen As System.Boolean _
) As CompressionStream
'Usage
 
Dim instance As LzmaCompression
Dim output As System.IO.Stream
Dim compressionLevel As System.Integer
Dim leaveOpen As System.Boolean
Dim value As CompressionStream
 
value = instance.CreateOutputStream(output, compressionLevel, leaveOpen)
public override CompressionStream CreateOutputStream( 
   System.IO.Stream output,
   System.int compressionLevel,
   System.bool leaveOpen
)
public function CreateOutputStream( 
    output: System.IO.Stream;
    compressionLevel: System.Integer;
    leaveOpen: System.Boolean
): CompressionStream; override; 
public override function CreateOutputStream( 
   output : System.IO.Stream,
   compressionLevel : System.int,
   leaveOpen : System.boolean
) : CompressionStream;
public: CompressionStream* CreateOutputStream( 
   System.IO.Stream* output,
   System.int compressionLevel,
   System.bool leaveOpen
) override 
public:
CompressionStream^ CreateOutputStream( 
   System.IO.Stream^ output,
   System.int compressionLevel,
   System.bool leaveOpen
) override 

Parameters

output
The underlying stream to which to write the compressed bytes.
compressionLevel
Specifies the compression level to be used when compressing. It may be set to an integer from 1 to 9. Generally, lower compression levels result in faster performance while higher compression levels result in better compression.
leaveOpen
If True then the underlying stream is left open when this stream is closed, otherwise the underlying stream is closed when this stream is closed.

Return Value

The stream to write data to be compressed.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LzmaCompression Class
LzmaCompression Members
Overload List
Base Implementation in CreateOutputStream(Stream,Int32,Boolean)

Send Feedback