PushbackInputStream.unread
Class Overview | Class Members |
This Package |
All Packages
public void unread( int b ) throws IOException
Parameters
- b
- the int value whose low-order
byte is to be pushed back.
Description
Pushes back a byte by copying it to the front of the pushback buffer.
After this method returns, the next byte to be read will have the value
(byte)b.
Exceptions
IOException
If there is not enough room in the pushback
buffer for the byte.
public void unread( byte b[],
int off,
int len ) throws IOException
Parameters
- b
- the byte array to push back.
- off
- the start offset of the data.
- len
- the number of bytes to push back.
Description
Pushes back a portion of an array of bytes by copying it to the front
of the pushback buffer. After this method returns, the next byte to be
read will have the value b[off], the byte after that will
have the value b[off+1], and so forth.
Exceptions
IOException
If there is not enough room in the pushback
buffer for the specified number of bytes.
public void unread( byte b[] ) throws IOException
Parameters
- b
- the byte array to push back
Description
Pushes back an array of bytes by copying it to the front of the
pushback buffer. After this method returns, the next byte to be read
will have the value b[0], the byte after that will have the
value b[1], and so forth.
Exceptions
IOException
If there is not enough room in the pushback
buffer for the specified number of bytes.