Class ByteBufferListOutputStream

java.lang.Object
java.io.OutputStream
org.apache.hadoop.hbase.io.ByteBufferOutputStream
org.apache.hadoop.hbase.io.ByteBufferListOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, ByteBufferWriter

An OutputStream which writes data into ByteBuffers. It will try to get ByteBuffer, as and when needed, from the passed pool. When pool is not giving a ByteBuffer it will create one on heap. Make sure to call releaseResources() method once the Stream usage is over and data is transferred to the wanted destination. Not thread safe!