org.littleshoot.util.mina
Class ByteBufferIoSessionOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.littleshoot.util.mina.AbstractIoSessionOutputStream<org.littleshoot.mina.common.ByteBuffer>
          extended by org.littleshoot.util.mina.ByteBufferIoSessionOutputStream
All Implemented Interfaces:
Closeable, Flushable

public final class ByteBufferIoSessionOutputStream
extends AbstractIoSessionOutputStream<org.littleshoot.mina.common.ByteBuffer>

An IoSessionOutputStream for byte buffers.


Field Summary
 
Fields inherited from class org.littleshoot.util.mina.AbstractIoSessionOutputStream
m_ioSession, m_lastWriteFuture
 
Constructor Summary
ByteBufferIoSessionOutputStream(org.littleshoot.mina.common.IoSession session)
          Creates a new ByteBufferIoSessionOutputStream for the specified session.
 
Method Summary
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class org.littleshoot.util.mina.AbstractIoSessionOutputStream
close, flush, write
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferIoSessionOutputStream

public ByteBufferIoSessionOutputStream(org.littleshoot.mina.common.IoSession session)
Creates a new ByteBufferIoSessionOutputStream for the specified session.

Parameters:
session - The IoSession.
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException


Copyright © 2013 LittleShoot. All Rights Reserved.