class IoSessionInputStream
extends java.io.InputStream
InputStream that buffers data read from
IoHandler.messageReceived(IoSession, Object) events.| Modifier and Type | Field and Description |
|---|---|
private IoBuffer |
buf |
private boolean |
closed |
private java.io.IOException |
exception |
private java.lang.Object |
mutex |
private boolean |
released |
| Constructor and Description |
|---|
IoSessionInputStream() |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private void |
releaseBuffer() |
void |
throwException(java.io.IOException e) |
private boolean |
waitForData() |
void |
write(IoBuffer src) |
private final java.lang.Object mutex
private final IoBuffer buf
private volatile boolean closed
private volatile boolean released
private java.io.IOException exception
public int available()
available in class java.io.InputStreampublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionprivate boolean waitForData()
throws java.io.IOException
java.io.IOExceptionprivate void releaseBuffer()
public void write(IoBuffer src)
public void throwException(java.io.IOException e)