org.eclipse.net4j.buffer
Class BufferOutputStream

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

public class BufferOutputStream
extends java.io.OutputStream


Field Summary
static boolean DEFAULT_PROPAGATE_CLOSE
           
 
Constructor Summary
BufferOutputStream(IBufferHandler bufferHandler, IBufferProvider bufferProvider, short channelIndex)
           
BufferOutputStream(IBufferHandler bufferHandler, short channelIndex)
           
 
Method Summary
 void close()
           
protected  void ensureBuffer()
           
 void flush()
           
 void flushWithEOS()
           
protected  boolean isPropagateClose()
           
 java.lang.String toString()
           
 void write(int b)
           
 
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
 

Field Detail

DEFAULT_PROPAGATE_CLOSE

public static final boolean DEFAULT_PROPAGATE_CLOSE
See Also:
Constant Field Values
Constructor Detail

BufferOutputStream

public BufferOutputStream(IBufferHandler bufferHandler,
                          IBufferProvider bufferProvider,
                          short channelIndex)

BufferOutputStream

public BufferOutputStream(IBufferHandler bufferHandler,
                          short channelIndex)
Method Detail

write

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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

flushWithEOS

public void flushWithEOS()
                  throws java.io.IOException
Throws:
java.io.IOException

close

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ensureBuffer

protected void ensureBuffer()

isPropagateClose

protected boolean isPropagateClose()

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.