Class ChannelBufferOutputStream

java.lang.Object
java.io.OutputStream
org.jboss.netty.buffer.ChannelBufferOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable

public class ChannelBufferOutputStream extends OutputStream implements DataOutput
An OutputStream which writes data to a ChannelBuffer.

A write operation against this stream will occur at the writerIndex of its underlying buffer and the writerIndex will increase during the write operation.

This stream implements DataOutput for your convenience. The endianness of the stream is not always big endian but depends on the endianness of the underlying buffer.

See Also: