LineNumberInputStream.available

LineNumberInputStream.available

Class Overview | Class Members | This Package | All Packages

Syntax
public 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.

Note that if the underlying input stream is able to supply k input characters without blocking, the LineNumberInputStream can guarantee only to provide k/2 characters without blocking, because the k characters from the underlyhing input stream might consist of k/2 pairs of '\r' and '\n', which are converted to just k/2 '\n' characters.

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