Table of Contents

Class StreamWriterOptions

Namespace
Cuemon.IO
Assembly
Cuemon.IO.dll

Configuration options for StreamWriter.

public class StreamWriterOptions : StreamEncodingOptions, IParameterObject, IEncodingOptions
Inheritance
StreamWriterOptions
Implements
Inherited Members

Constructors

StreamWriterOptions()

Initializes a new instance of the StreamWriterOptions class.

public StreamWriterOptions()

Remarks

The following table shows the initial property values for an instance of StreamWriterOptions.

PropertyInitial Value
AutoFlushfalse
BufferSize1024
PreambleKeep
EncodingDefaultEncoding
FormatProviderInvariantCulture
NewLineNewLine

Properties

AutoFlush

Gets or sets a value indicating whether the StreamWriter will flush its buffer to the underlying stream after every call to the Write method.

public bool AutoFlush { get; set; }

Property Value

Boolean

true to force StreamWriter to flush its buffer; otherwise, false.

BufferSize

Gets or sets the size of the buffer.

public int BufferSize { get; set; }

Property Value

Int32

The size of the buffer in bytes for the StreamWriter.

FormatProvider

Gets or sets the culture-specific formatting information used when writing data with the StreamWriter.

public IFormatProvider FormatProvider { get; set; }

Property Value

IFormatProvider

An IFormatProvider that contains the culture-specific formatting information. The default is InvariantCulture.

NewLine

Gets or sets the line terminator string used by the StreamWriter.

public string NewLine { get; set; }

Property Value

String

The line terminator string for the StreamWriter.