| java.lang.Object org.apache.mina.common.IoHandlerAdapter org.apache.mina.handler.stream.StreamIoHandler
StreamIoHandler | abstract public class StreamIoHandler extends IoHandlerAdapter (Code) | | A
IoHandler that adapts asynchronous MINA events to stream I/O.
Please extend this class and implement
StreamIoHandler.processStreamIo(IoSession,InputStream,OutputStream) to
execute your stream I/O logic; please note that you must forward
the process request to other thread or thread pool.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 616100 $, $Date: 2008-01-28 15:58:32 -0700 (Mon, 28 Jan 2008) $ |
StreamIoHandler | protected StreamIoHandler()(Code) | | |
exceptionCaught | public void exceptionCaught(IoSession session, Throwable cause)(Code) | | Forwards caught exceptions to input stream.
|
getReadTimeout | public int getReadTimeout()(Code) | | Returns read timeout in seconds.
The default value is 0 (disabled).
|
getWriteTimeout | public int getWriteTimeout()(Code) | | Returns write timeout in seconds.
The default value is 0 (disabled).
|
messageReceived | public void messageReceived(IoSession session, Object buf)(Code) | | Forwards read data to input stream.
|
processStreamIo | abstract protected void processStreamIo(IoSession session, InputStream in, OutputStream out)(Code) | | Implement this method to execute your stream I/O logic;
please note that you must forward the process request to other
thread or thread pool.
|
sessionOpened | public void sessionOpened(IoSession session)(Code) | | Initializes streams and timeout settings.
|
setReadTimeout | public void setReadTimeout(int readTimeout)(Code) | | Sets read timeout in seconds.
The default value is 0 (disabled).
|
setWriteTimeout | public void setWriteTimeout(int writeTimeout)(Code) | | Sets write timeout in seconds.
The default value is 0 (disabled).
|
|
|