Constructors: NewBinaryWriter

NewBinaryWriter

Returns a new BinaryWriter used to write to a Stream object.



 Public Function NewBinaryWriter(
	  ByVal Stream As Stream,
	  Optional ByVal Encoding As Encoding ) As BinaryWriter

Parameters

Stream
[ByVal] Stream. The supplied stream.
Encoding
[ByVal] Optional. Encoding. The character encoding.

Return Values

BinaryWriter -  The new BinaryWriter object.

Remarks

If Encoding is not supplied, then an encoding of Cor.NewUTF8Encoding(False, True) is used.
ExceptionCondition
ArgumentExceptionThe stream does not support writing, or the stream is already closed.
ArgumentNullExceptionStream is Nothing.

See Also

Project CorLib Overview

Class Constructors Overview