| java.lang.Object java.io.InputStream seda.nbio.NonblockingInputStream seda.nbio.NonblockingSocketInputStream
NonblockingSocketInputStream | class NonblockingSocketInputStream extends NonblockingInputStream (Code) | | Package-internal class implementing NonblockingInputStream for
nonblocking sockets.
|
Method Summary | |
public int | available() | public void | close() | public int | nbRead() 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. | public int | read() 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. | public int | read(byte b) Perform a non-blocking read of up to b.length bytes
from the underlying stream. | public int | read(byte b, int off, int len) Perform a non-blocking read of up to len bytes from the
underlying stream into the byte array b starting at offset
off . | public long | skip(long n) Skip n bytes of input. |
nbRead | public int nbRead() throws IOException(Code) | | 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.
|
read | public int read() throws IOException(Code) | | 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.
|
read | public int read(byte b) throws IOException(Code) | | Perform a non-blocking read of up to b.length bytes
from the underlying stream.
The total number of bytes read into the buffer, 0 if no data was available, or -1 if the end of the stream hasbeen reached. |
read | public int read(byte b, int off, int len) throws IOException(Code) | | Perform a non-blocking read of up to len bytes from the
underlying stream into the byte array b starting at offset
off .
The total number of bytes read into the buffer, 0 if no data was available, or -1 if the end of the stream hasbeen reached. |
skip | public long skip(long n) throws IOException(Code) | | Skip n bytes of input. This is a blocking operation.
|
|
|