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 |
| seda.nbio.NonblockingSocketInputStream.NonblockingSocketInputStream | ( | NonblockingSocketImpl | impl | ) | [package] |
| native int seda.nbio.NonblockingSocketInputStream.nbSocketRead | ( | byte | b[], | |
| int | off, | |||
| int | len | |||
| ) | throws IOException [private] |
| int seda.nbio.NonblockingSocketInputStream.read | ( | ) | throws IOException [virtual] |
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.
| int seda.nbio.NonblockingSocketInputStream.nbRead | ( | ) | throws IOException [virtual] |
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.
| int seda.nbio.NonblockingSocketInputStream.read | ( | byte | b[] | ) | throws IOException [virtual] |
Perform a non-blocking read of up to b.length bytes from the underlying stream.
Implements seda.nbio.NonblockingInputStream.
| int seda.nbio.NonblockingSocketInputStream.read | ( | byte | b[], | |
| int | off, | |||
| int | len | |||
| ) | throws IOException [virtual] |
Perform a non-blocking read of up to len bytes from the underlying stream into the byte array b starting at offset off.
Implements seda.nbio.NonblockingInputStream.
| long seda.nbio.NonblockingSocketInputStream.skip | ( | long | n | ) | throws IOException [virtual] |
| int seda.nbio.NonblockingSocketInputStream.available | ( | ) | throws IOException [virtual] |
Implements seda.nbio.NonblockingInputStream.
| void seda.nbio.NonblockingSocketInputStream.close | ( | ) | throws IOException [virtual] |
Implements seda.nbio.NonblockingInputStream.
boolean seda.nbio.NonblockingSocketInputStream.eof [private] |
byte seda.nbio.NonblockingSocketInputStream.temp[] = new byte[1] [private] |
final int seda.nbio.NonblockingSocketInputStream.SKIPBUFLEN = 4096 [static, private] |
1.5.1