Method | Description | |
---|---|---|
Close ( ) : void | ||
Peek ( ) : int |
When called will peek the next character that was not yet read. Same as TextReader
|
|
PeekAhead ( ) : int |
Peek method that will advance one character on each peek without changing the readers state (it does so by reading to an internal buffer that is later fed back to Read()). You can read all the way to the end of the file without affecting Read(). The next time read is called the internal buffer will be dequeue until it is empty.
|
|
PeekingTextReader ( |
Creates a new instance of the peeking text reader using the provided text reader as the underlying source.
|
|
Read ( ) : int | ||
Read ( char buffer, int index, int count ) : int | ||
ReadBlock ( char buffer, int index, int count ) : int | ||
ReadLine ( ) : string | ||
ReadToEnd ( ) : string |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
public PeekingTextReader ( |
||
textReader | ||
return | System |
public Read ( char buffer, int index, int count ) : int | ||
buffer | char | |
index | int | |
count | int | |
return | int |
public ReadBlock ( char buffer, int index, int count ) : int | ||
buffer | char | |
index | int | |
count | int | |
return | int |