class Text extends BinaryComparable implements WritableComparable<BinaryComparable> {

  public int charAt(int position) {
    if (position > this.length) return -1; // too long
    if (position < 0) return -1; // duh.
      
    ByteBuffer bb = (ByteBuffer)ByteBuffer.wrap(bytes).position(position);
    return bytesToCodePoint(bb.slice());
  }

  public  Text();
  public  Text(String string);
  public  Text(Text utf8);
  public  Text(byte[] utf8);

}