C# Class Pomona.NonClosingStreamWriter

A version of StreamWriter that doesn't close the underlying Stream when Disposed. Writes to the underlying Stream with a BOM-less UTF-8 encoding.
Inheritance: System.IO.StreamWriter
Exibir arquivo Open project: Pomona/Pomona Class Usage Examples

Public Methods

Method Description
NonClosingStreamWriter ( Stream stream ) : System.IO

Initializes a new instance of the NonClosingStreamWriter class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Flushes the content of the StreamWriter to the underlying Stream, but does not close it.

Private Methods

Method Description
NonClosingStreamWriter ( ) : System.IO

Initializes the NonClosingStreamWriter class.

Method Details

Dispose() protected method

Flushes the content of the StreamWriter to the underlying Stream, but does not close it.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

NonClosingStreamWriter() public method

Initializes a new instance of the NonClosingStreamWriter class.
public NonClosingStreamWriter ( Stream stream ) : System.IO
stream System.IO.Stream The stream to write to.
return System.IO