BufferedInputStream.available

BufferedInputStream.available

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized int available() throws IOException
Returns
the number of bytes that can be read from this input stream without blocking.
Description
Returns the number of bytes that can be read from this input stream without blocking.

The available method of BufferedInputStream returns the sum of the the number of bytes remaining to be read in the buffer (count - pos) and the result of calling the available method of the underlying input stream.

Exceptions
IOException if an I/O error occurs.
Overrides
available in class FilterInputStream
See Also
in