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 TypeMethodDescriptionint
void
close()
int
read()
int
read
(byte[] b, int off, int len) void
void
write
(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:
available
in classInputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
write
-
throwException
-