public static void writeValue(OutputStream out, ExtendedCell cell, int vlength)
    throws IOException {
    if (cell instanceof ByteBufferExtendedCell) {
      ByteBufferUtils.copyBufferToStream(out, ((ByteBufferExtendedCell) cell).getValueByteBuffer(),
        ((ByteBufferExtendedCell) cell).getValuePosition(), vlength);
    } else {
      out.write(cell.getValueArray(), cell.getValueOffset(), vlength);
    }
  }
Writes the value from the given cell to the output stream
@param out     The outputstream to which the data has to be written
@param cell    The cell whose contents has to be written
@param vlength the value length
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java