public static void writeQualifierSkippingBytes(DataOutputStream out, Cell cell, int qlength,
    int commonPrefix) throws IOException {
    if (cell instanceof ByteBufferExtendedCell) {
      ByteBufferUtils.copyBufferToStream((DataOutput) out,
        ((ByteBufferExtendedCell) cell).getQualifierByteBuffer(),
        ((ByteBufferExtendedCell) cell).getQualifierPosition() + commonPrefix,
        qlength - commonPrefix);
    } else {
      out.write(cell.getQualifierArray(), cell.getQualifierOffset() + commonPrefix,
        qlength - commonPrefix);
    }
  }
Writes the qualifier from the given cell to the output stream excluding the common prefix
@param out     The dataoutputstream to which the data has to be written
@param cell    The cell whose contents has to be written
@param qlength the qualifier length
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java