Public Member Functions | |
| int | read () throws IOException |
| Perform a blocking read of one byte from this input stream. | |
| int | nbRead () throws IOException |
| Perform a non-blocking read of one byte from this input stream. | |
| int | read (byte b[]) throws IOException |
Perform a non-blocking read of up to b.length bytes from the underlying stream. | |
| 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. | |
| long | skip (long n) throws IOException |
| Skip n bytes of input. | |
| int | available () throws IOException |
| void | close () throws IOException |
Package Functions | |
| NonblockingSocketInputStream (NonblockingSocketImpl impl) | |
Private Member Functions | |
| native int | nbSocketRead (byte b[], int off, int len) throws IOException |
Private Attributes | |
| NBIOFileDescriptor | fd |
| boolean | eof |
| NonblockingSocketImpl | impl |
| byte | temp [] = new byte[1] |
Static Private Attributes | |
| static final int | SKIPBUFLEN = 4096 |
|
|
|
|
|
Implements seda.nbio.NonblockingInputStream. |
|
|
Implements seda.nbio.NonblockingInputStream. |
|
|
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. Implements seda.nbio.NonblockingInputStream. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Perform a non-blocking read of up to
Implements seda.nbio.NonblockingInputStream. |
|
|
Perform a non-blocking read of up to
Implements seda.nbio.NonblockingInputStream. |
|
|
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. Implements seda.nbio.NonblockingInputStream. |
|
|
Skip n bytes of input. This is a blocking operation. Implements seda.nbio.NonblockingInputStream. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.2