|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
seda.nbio.NonblockingInputStream
seda.nbio.NonblockingSocketInputStream
class NonblockingSocketInputStream
Package-internal class implementing NonblockingInputStream for nonblocking sockets.
Constructor Summary | |
---|---|
NonblockingSocketInputStream(NonblockingSocketImpl impl)
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
int |
nbRead()
Perform a non-blocking read of one byte from this input stream. |
int |
read()
Perform a blocking read of one byte from this input stream. |
int |
read(byte[] b)
Perform a non-blocking read of up to b.length bytes
from the underlying stream. |
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 . |
long |
skip(long n)
Skip n bytes of input. |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
NonblockingSocketInputStream(NonblockingSocketImpl impl)
Method Detail |
---|
public int read() throws java.io.IOException
read
in class NonblockingInputStream
java.io.IOException
public int nbRead() throws java.io.IOException
nbRead
in class NonblockingInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
b.length
bytes
from the underlying stream.
read
in class NonblockingInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
len
bytes from the
underlying stream into the byte array b
starting at offset
off
.
read
in class NonblockingInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class NonblockingInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class NonblockingInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class NonblockingInputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |