available
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. The next invocation might be the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes.
This method returns the sum of the number of bytes remaining to be read in the buffer (count - pos) and the result of calling the java.io.FilterInputStream. in.available().
Return
an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking.
Throws
IOException
if this input stream has been closed by invoking its .close method, or an I/O error occurs.