Noemax FastInfoset.NET
Init(Stream,XmlWriterSettings,FastInfosetCompression,Int32) Method
See Also  Send Feedback
Noemax.FastInfoset Namespace > XmlFastInfosetWriter Class > Init Method : Init(Stream,XmlWriterSettings,FastInfosetCompression,Int32) Method






output
The stream to which you want to write.
settings
XmlWriterSettings to be to configure the writer.
compression
The compression algorithm to compress the output data.
compressionLevel
Gets and sets the compression level to be applied, were 1 is for fastest compression and 9 for maximum compression.
Initializes an instance of the XmlFastInfosetWriter class preparing to write into the specified stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Init( _
   ByVal output As Stream, _
   ByVal settings As XmlWriterSettings, _
   ByVal compression As FastInfosetCompression, _
   ByVal compressionLevel As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetWriter
Dim output As Stream
Dim settings As XmlWriterSettings
Dim compression As FastInfosetCompression
Dim compressionLevel As Integer
 
instance.Init(output, settings, compression, compressionLevel)
Delphi 
public procedure Init( 
    output: Stream;
    settings: XmlWriterSettings;
    compression: FastInfosetCompression;
    compressionLevel: Integer
); 
JScript 
public function Init( 
   output : Stream,
   settings : XmlWriterSettings,
   compression : FastInfosetCompression,
   compressionLevel : int
);
Managed Extensions for C++ 
public: void Init( 
   Stream* output,
   XmlWriterSettings* settings,
   FastInfosetCompression compression,
   int compressionLevel
) 
C++/CLI 
public:
void Init( 
   Stream^ output,
   XmlWriterSettings^ settings,
   FastInfosetCompression compression,
   int compressionLevel
) 

Parameters

output
The stream to which you want to write.
settings
XmlWriterSettings to be to configure the writer.
compression
The compression algorithm to compress the output data.
compressionLevel
Gets and sets the compression level to be applied, were 1 is for fastest compression and 9 for maximum compression.

Remarks

Initializes the writer and sets it to use the provided stream as output.

This method allows the reuse the XmlFastInfosetWriter for writing to another stream.

See Also