Add ByteBufferInputStream and modify Chunk to consume ByteBuffer instead
of byte array.