anon.shared
Class ChannelOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by anon.shared.ChannelOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

final class ChannelOutputStream
extends java.io.OutputStream


Field Summary
(package private)  boolean m_bIsClosed
           
(package private)  AbstractChannel m_channel
           
 
Constructor Summary
protected ChannelOutputStream(AbstractChannel c)
           
 
Method Summary
 void close()
           
(package private)  void closedByPeer()
           
 void write(byte[] buff, int start, int len)
           
 void write(int i)
           
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_bIsClosed

boolean m_bIsClosed

m_channel

AbstractChannel m_channel
Constructor Detail

ChannelOutputStream

protected ChannelOutputStream(AbstractChannel c)
Method Detail

write

public void write(int i)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] buff,
                  int start,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream

closedByPeer

void closedByPeer()