Fields
Name | Description |
---|---|
buf | The pushback buffer. |
pos | The position within the pushback buffer from which the next byte will be read. |
Constructors
Name | Description |
---|---|
PushbackInputStream(InputStream) | Creates a new pushback input stream with a one-byte pushback buffer. |
PushbackInputStream(InputStream, int) | Creates a new pushback input stream with a pushback buffer of the specified size. |
Methods
Name | Description |
---|---|
available() | Returns the number of bytes that can be read from this input stream without blocking. |
markSupported() | Tests if this input stream supports the mark and reset methods, which it does not. |
read() | Reads the next byte of data from this input stream. |
read(byte[], int, int) | Reads up to len bytes of data from this input stream into an array of bytes. |
unread(byte[]) | Pushes back an array of bytes by copying it to the front of the pushback buffer. |
unread(byte[], int, int) | Pushes back a portion of an array of bytes by copying it to the front of the pushback buffer. |
unread(int) | Pushes back a byte by copying it to the front of the pushback buffer. |