Mono Class Library: Overview

System.IO.StreamReader: Members

The members of System.IO.StreamReader are listed below.

See Also: Inherited members from System.IO.TextReader

Public Constructors

Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified file name.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream, with the specified byte order mark detection option.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream with the specified character encoding.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified file name, with the specified byte order mark detection option.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified file name and with the specified character encoding.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream, with the specified character encoding and byte order mark detection option.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified file name, with the specified character encoding and byte order mark detection option.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream, with the specified character encoding, byte order mark detection option, and buffer size.
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified file name, with the specified character encoding, byte order mark detection option, and buffer size.

Public Fields

static readonly
NullStreamReader. Documentation for this section has not yet been entered.

Public Properties

[read-only]
BaseStreamStream. Gets the underlying stream.
[read-only]
CurrentEncodingSystem.Text.Encoding. Gets the current character encoding that the current System.IO.StreamReader is using.
[read-only]
EndOfStreambool. Documentation for this section has not yet been entered.

Public Methods

override
Close()
Closes the current instance of System.IO.StreamReader , releasing any system resources associated with it.
DiscardBufferedData()
Allows a System.IO.StreamReader to discard its buffered data.
override
Peek() : int
Returns the next character in the underlying stream without advancing the position of the System.IO.StreamReader in the stream.
override
Read() : int
Reads the next character from the input stream and advances the character position by one character.
override
Read(char[], int, int) : int
Reads a maximum of count characters from the current stream into buffer, beginning at index.
override
ReadLine() : string
Reads a line of characters from the current stream and returns the data as a string.
override
ReadToEnd() : string
Reads the stream from the current position to the end of the stream.

Protected Methods

override
Dispose(bool)
Releases the unmanaged resources used by the System.IO.StreamReader and optionally releases the managed resources.