Inherited by nbio.NonblockingSocketInputStream.
The only additional method is nbRead() which performs a nonblocking read of one byte. The read(byte[]) and read(byte[], int, int) methods are also nonblocking. The standard read(byte) call is blocking as there is no way to indicate that nothing was read (a -1 means an error occurred).
Public Member Functions | |
abstract int | read () throws IOException |
Perform a blocking read of one byte from this input stream. | |
abstract int | nbRead () throws IOException |
Perform a non-blocking read of one byte from this input stream. | |
abstract int | read (byte b[]) throws IOException |
Perform a non-blocking read of up to b.length bytes from the underlying stream. | |
abstract int | read (byte b[], int off, int len) throws IOException |
Perform a non-blocking read of up to len bytes from the underlying stream into the byte array b starting at offset off . | |
abstract long | skip (long n) throws IOException |
Skip n bytes of input. | |
abstract int | available () throws IOException |
abstract void | close () throws IOException |
|
Implemented in nbio.NonblockingSocketInputStream. |
|
Implemented in nbio.NonblockingSocketInputStream. |
|
Perform a non-blocking read of one byte from this input stream. Returns -1 if no data is available, or throws an EOFException if the end of the stream has been reached. Use read() to perform a blocking read of one byte. Implemented in nbio.NonblockingSocketInputStream. |
|
Perform a non-blocking read of up to
Implemented in nbio.NonblockingSocketInputStream. |
|
Perform a non-blocking read of up to
Implemented in nbio.NonblockingSocketInputStream. |
|
Perform a blocking read of one byte from this input stream. Returns -1 if the end of the stream has been reached. Use nbRead() to perform a non-blocking read of one byte. Implemented in nbio.NonblockingSocketInputStream. |
|
Skip n bytes of input. This is a blocking operation. Implemented in nbio.NonblockingSocketInputStream. |