public static String toStringBinary(final ByteBuffer b) {
    return toStringBinary(b, 0, b.capacity());
  }
Similar to {@link Arrays#copyOfRange(byte[], int, int)}
@param original the buffer from which the copy has to happen
@param from     the starting index
@param to       the ending index
@return a byte[] created out of the copy
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ByteBufferUtils.java