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 {@link java.io.FilterInputStream#in in}.available().
@return an estimate of the number of bytes that can be read (or skippedover) from this input stream without blocking.
@exception IOException if this input stream has been closed byinvoking its {@link #close()} method,or an I/O error occurs.
This method simply performs in.available()
and returns the result.
@return the number of bytes that can be read from the input streamwithout blocking.
@exception IOException if an I/O error occurs.
In some cases, a non-blocking read (or skip) may appear to be blocked when it is merely slow, for example when reading large files over slow networks. @return an estimate of the number of remaining bytes that can be read(or skipped over) from this input stream without blocking. @exception IOException if this file input stream has been closed by calling{@code close} or an I/O error occurs.
The method returns the sum of the number of bytes that have been pushed back and the value returned by {@link java.io.FilterInputStream#available available}. @return the number of bytes that can be read (or skipped over) fromthe input stream without blocking. @exception IOException if this input stream has been closed byinvoking its {@link #close()} method,or an I/O error occurs. @see java.io.FilterInputStream#in @see java.io.InputStream#available()
Programs should not count on this method to return the actual number of bytes that could be read without blocking @return zero after the end of the underlying input stream has beenreached, otherwise always returns 1 @throws IOException if an I/O error occurs or if this stream isalready closed
Programs should not count on this method to return the actual number of bytes that could be read without blocking. @return 1 before EOF and 0 after EOF. @exception IOException if an I/O error occurs.
Programs should not count on this method to return the actual number of bytes that could be read without blocking. @return 1 before EOF and 0 after EOF has reached for current entry. @exception IOException if an I/O error occurs.
read
or skip
method for this audio input stream; the limit can vary each time these methods are invoked. Depending on the underlying stream,an IOException may be thrown if this stream is closed.
@return the number of bytes that can be read from this audio input stream without blocking
@throws IOException if an input or output error occurs
@see #read(byte[],int,int)
@see #read(byte[])
@see #read()
@see #skip
Returns the available content bytes that can be read via {@link #readInto(ByteBuffer)}.
Each invocation to {@link #readInto(ByteBuffer)} modifies the value returned by this method,until no more content bytes are available.
@return the available content bytes @see #readInto(ByteBuffer)Note that while some implementations of {@code InputStream} will returnthe total number of bytes in the stream, many will not. It is never correct to use the return value of this method to allocate a buffer intended to hold all data in this stream.
A subclass' implementation of this method may choose to throw an {@link IOException} if this input stream has been closed byinvoking the {@link #close()} method.
The {@code available} method for class {@code InputStream} alwaysreturns {@code 0}. @return an estimate of the number of bytes that can be read (or skippedover) from this input stream without blocking or {@code 0} whenit reaches the end of the input stream. @exception IOException if an I/O error occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|