public ByteBuffer toBuffer() throws IOException {
    byte[] buf = new byte[(int) chunkLength];
    stream.readFully(buf);
    return ByteBuffer.wrap(buf);
  }
Convert the chunk stream to a ByteBuffer
@return ByteBuffer representing the chunk stream of the file requested
@throws IOException
ambry-api/src/main/java/com/github/ambry/store/StoreFileChunk.java