Class IoSessionInputStream
java.lang.Object
java.io.InputStream
org.apache.mina.handler.stream.IoSessionInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
An
InputStream that buffers data read from
IoHandler.messageReceived(IoSession, Object) events.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InputStream
mark, markSupported, read, reset, skip
-
Field Details
-
mutex
-
buf
-
closed
private volatile boolean closed -
released
private volatile boolean released -
exception
-
-
Constructor Details
-
IoSessionInputStream
public IoSessionInputStream()
-
-
Method Details
-
available
public int available()- Overrides:
availablein classInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
waitForData
- Throws:
IOException
-
releaseBuffer
private void releaseBuffer() -
write
-
throwException
-