Class ChannelBufferInputStream

java.lang.Object
java.io.InputStream
org.jboss.netty.buffer.ChannelBufferInputStream
All Implemented Interfaces:
Closeable, DataInput, AutoCloseable

public class ChannelBufferInputStream extends InputStream implements DataInput
An InputStream which reads data from a ChannelBuffer.

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

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

See Also: