Package java.io
Class PushbackInputStream
int read()
Overrides:
Throws:
int read(byte[] buf, int offset, int len)
Overrides:
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
read() method:
This method reads the next byts from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, of an exception is thrown.
read(byte[] buf, int offset, int len) method:
This method read up to len bytes of data from this input stream into an array of bytes. This method reads any pushed back byte first. Afterwareds it reads from the underlying input stream if fewer than len bytes have been read. This method blocks until at least 1 byte of input is available.