PushbackReader.unread

PushbackReader.unread

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void unread( int c ) throws IOException
Parameters
c
The character to push back
Description
Push back a single character.

Exceptions
IOException If the pushback buffer is full, or if some other I/O error occurs



Syntax 2
public void unread( char cbuf[], int off, int len ) throws IOException
Parameters
cbuf
Character array
off
Offset of first character to push back
len
Number of characters to push back
Description
Push 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 cbuf[off], the character after that will have the value cbuf[off+1], and so forth.

Exceptions
IOException If there is insufficient room in the pushback buffer, or if some other I/O error occurs



Syntax 3
public void unread( char cbuf[] ) throws IOException
Parameters
cbuf
Character array to push back
Description
Push 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 cbuf[0], the character after that will have the value cbuf[1], and so forth.

Exceptions
IOException If there is insufficient room in the pushback buffer, or if some other I/O error occurs