Package org.apache.mina.handler.stream
Class IoSessionInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.mina.handler.stream.IoSessionInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
class IoSessionInputStream extends InputStream
AnInputStreamthat buffers data read fromIoHandler.messageReceived(IoSession, Object)events.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description IoSessionInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] b, int off, int len)voidthrowException(IOException e)voidwrite(IoBuffer src)-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
available
public int available()
- Overrides:
availablein classInputStream
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
write
public void write(IoBuffer src)
-
throwException
public void throwException(IOException e)
-
-