Method | Description | |
---|---|---|
Close ( ) : void |
Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), unread(), ready(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
|
|
PushbackReader ( TextReader inp ) : System |
Creates a new pushback reader with a one-character pushback buffer.
|
|
PushbackReader ( TextReader inp, int size ) : System |
Creates a new pushback reader with a pushback buffer of the given size.
|
|
Read ( ) : int |
Reads a single character.
|
|
Read ( char cbuf, int off, int len ) : int |
Reads characters into a portion of an array.
|
|
Unread ( char cbuf ) : void |
Pushes back an array of characters by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value
|
|
Unread ( char cbuf, int off, int len ) : void |
Pushes back a portion of an array of characters by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value
|
|
Unread ( int c ) : void |
Pushes back a single character by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value
|
Method | Description | |
---|---|---|
EnsureOpen ( ) : void |
Checks to make sure that the stream has not been closed.
|
public PushbackReader ( TextReader inp ) : System | ||
inp | TextReader | |
return | System |
public PushbackReader ( TextReader inp, int size ) : System | ||
inp | TextReader | |
size | int | The size of the pushback buffer |
return | System |
public Read ( char cbuf, int off, int len ) : int | ||
cbuf | char | Destination buffer |
off | int | Offset at which to start writing characters |
len | int | Maximum number of characters to read /// |
return | int |
public Unread ( char cbuf ) : void | ||
cbuf | char | Character array to push back /// |
return | void |
public Unread ( char cbuf, int off, int len ) : void | ||
cbuf | char | Character array |
off | int | Offset of first character to push back |
len | int | Number of characters to push back /// |
return | void |
public Unread ( int c ) : void | ||
c | int | The int value representing a character to be pushed back /// |
return | void |