org.eclipse.net4j.buffer
Class BufferOutputStream
java.lang.Object
java.io.OutputStream
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
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 |
DEFAULT_PROPAGATE_CLOSE
public static final boolean DEFAULT_PROPAGATE_CLOSE
- See Also:
- Constant Field Values
BufferOutputStream
public BufferOutputStream(IBufferHandler bufferHandler,
IBufferProvider bufferProvider,
short channelIndex)
BufferOutputStream
public BufferOutputStream(IBufferHandler bufferHandler,
short channelIndex)
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()