org.eclipse.net4j.channel
Class ChannelOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.eclipse.net4j.buffer.BufferOutputStream
          extended by org.eclipse.net4j.channel.ChannelOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class ChannelOutputStream
extends BufferOutputStream

An output stream that fragments the written byte sequence into fixed-sized buffers and passes them to configured channel.


Field Summary
 
Fields inherited from class org.eclipse.net4j.buffer.BufferOutputStream
DEFAULT_PROPAGATE_CLOSE
 
Constructor Summary
ChannelOutputStream(IChannel channel)
           
ChannelOutputStream(IChannel channel, IBufferProvider bufferProvider)
           
 
Method Summary
 
Methods inherited from class org.eclipse.net4j.buffer.BufferOutputStream
close, ensureBuffer, flush, flushWithEOS, getError, isPropagateClose, setError, toString, write
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelOutputStream

public ChannelOutputStream(IChannel channel)

ChannelOutputStream

public ChannelOutputStream(IChannel channel,
                           IBufferProvider bufferProvider)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.