C# Class System.IO.StreamReader

Inheritance: TextReader
Show file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
Null StreamReader

Private Properties

Property Type Description
CheckAsyncTaskInProgress void
CompressBuffer void
DetectEncoding void
Init void
Init void
IsPreamble bool
Peek int
ReadAsyncInternal Task
ReadBuffer int
ReadBuffer int
ReadBufferAsync Task
ReadLineAsyncInternal Task
ReadToEndAsyncInternal Task
StreamReader System.Text

Public Methods

Method Description
Close ( ) : void
DiscardBufferedData ( ) : void
Read ( ) : int
Read ( char buffer, int index, int count ) : int
ReadAsync ( char buffer, int index, int count ) : Task
ReadBlock ( char buffer, int index, int count ) : int
ReadBlockAsync ( char buffer, int index, int count ) : Task
ReadLine ( ) : string
ReadLineAsync ( ) : Task
ReadToEnd ( ) : string
ReadToEndAsync ( ) : Task
StreamReader ( Stream stream ) : System.Text
StreamReader ( Stream stream, Encoding encoding ) : System.Text
StreamReader ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks ) : System.Text
StreamReader ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize ) : System.Text
StreamReader ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen ) : System.Text
StreamReader ( Stream stream, bool detectEncodingFromByteOrderMarks ) : System.Text
StreamReader ( string path ) : System.Text
StreamReader ( string path, Encoding encoding ) : System.Text
StreamReader ( string path, Encoding encoding, bool detectEncodingFromByteOrderMarks ) : System.Text
StreamReader ( string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize ) : System.Text
StreamReader ( string path, bool detectEncodingFromByteOrderMarks ) : System.Text

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckAsyncTaskInProgress ( ) : void
CompressBuffer ( int n ) : void
DetectEncoding ( ) : void
Init ( Stream stream ) : void
Init ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen ) : void
IsPreamble ( ) : bool
Peek ( ) : int
ReadAsyncInternal ( char buffer, int index, int count ) : Task
ReadBuffer ( ) : int
ReadBuffer ( char userBuffer, int userOffset, int desiredChars, bool &readToUserBuffer ) : int
ReadBufferAsync ( ) : Task
ReadLineAsyncInternal ( ) : Task
ReadToEndAsyncInternal ( ) : Task
StreamReader ( ) : System.Text

Method Details

Close() public method

public Close ( ) : void
return void

DiscardBufferedData() public method

public DiscardBufferedData ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Read() public method

public Read ( ) : int
return int

Read() public method

public Read ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

ReadAsync() public method

public ReadAsync ( char buffer, int index, int count ) : Task
buffer char
index int
count int
return Task

ReadBlock() public method

public ReadBlock ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

ReadBlockAsync() public method

public ReadBlockAsync ( char buffer, int index, int count ) : Task
buffer char
index int
count int
return Task

ReadLine() public method

public ReadLine ( ) : string
return string

ReadLineAsync() public method

public ReadLineAsync ( ) : Task
return Task

ReadToEnd() public method

public ReadToEnd ( ) : string
return string

ReadToEndAsync() public method

public ReadToEndAsync ( ) : Task
return Task

StreamReader() public method

public StreamReader ( Stream stream ) : System.Text
stream Stream
return System.Text

StreamReader() public method

public StreamReader ( Stream stream, Encoding encoding ) : System.Text
stream Stream
encoding Encoding
return System.Text

StreamReader() public method

public StreamReader ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks ) : System.Text
stream Stream
encoding Encoding
detectEncodingFromByteOrderMarks bool
return System.Text

StreamReader() public method

public StreamReader ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize ) : System.Text
stream Stream
encoding Encoding
detectEncodingFromByteOrderMarks bool
bufferSize int
return System.Text

StreamReader() public method

public StreamReader ( Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen ) : System.Text
stream Stream
encoding Encoding
detectEncodingFromByteOrderMarks bool
bufferSize int
leaveOpen bool
return System.Text

StreamReader() public method

public StreamReader ( Stream stream, bool detectEncodingFromByteOrderMarks ) : System.Text
stream Stream
detectEncodingFromByteOrderMarks bool
return System.Text

StreamReader() public method

public StreamReader ( string path ) : System.Text
path string
return System.Text

StreamReader() public method

public StreamReader ( string path, Encoding encoding ) : System.Text
path string
encoding Encoding
return System.Text

StreamReader() public method

public StreamReader ( string path, Encoding encoding, bool detectEncodingFromByteOrderMarks ) : System.Text
path string
encoding Encoding
detectEncodingFromByteOrderMarks bool
return System.Text

StreamReader() public method

public StreamReader ( string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize ) : System.Text
path string
encoding Encoding
detectEncodingFromByteOrderMarks bool
bufferSize int
return System.Text

StreamReader() public method

public StreamReader ( string path, bool detectEncodingFromByteOrderMarks ) : System.Text
path string
detectEncodingFromByteOrderMarks bool
return System.Text

Property Details

Null public static property

public static StreamReader,System.IO Null
return StreamReader