org.apache.mina.handler.support

Class IoSessionInputStream


public class IoSessionInputStream
extends InputStream

An InputStream that buffers data read from IoHandler.messageReceived(IoSession,Object) events.

Constructor Summary

IoSessionInputStream()

Method Summary

int
available()
void
close()
int
read()
int
read(byte[] b, int off, int len)
void
throwException(IOException e)
void
write(ByteBuffer src)

Constructor Details

IoSessionInputStream

public IoSessionInputStream()

Method Details

available

public int available()

close

public void close()

read

public int read()
            throws IOException

read

public int read(byte[] b,
                int off,
                int len)
            throws IOException

throwException

public void throwException(IOException e)

write

public void write(ByteBuffer src)