public final char charAt(int index){
  if (index < 0 || index >= remaining()) {
    throw new IndexOutOfBoundsException("index=" + index + ", remaining()="+ remaining());
  }
  return get(position + index);
}

public final char charAt ( int index ) { if ( index < 0 || index >= remaining ( ) ) { throw new IndexOutOfBoundsException ( "index=" + index + ", remaining()=" + remaining ( ) ) ; } return get ( position + index ) ; }
returns the character located at the specified index in the buffer . the index value is referenced from the current buffer position .
