Package org.apache.mina.handler.support
Class IoSessionInputStream
java.lang.Object
java.io.InputStream
org.apache.mina.handler.support.IoSessionInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An
InputStream that buffers data read from
IoHandler.messageReceived(IoSession, Object) events.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()intread()intread(byte[] b, int off, int len) voidvoidwrite(ByteBuffer src) Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
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
-
write
-
throwException
-