public char read(){
  if (pos >= length) {
    throw new StringIndexOutOfBoundsException();
  }
  return source.charAt(pos++);
}

public char read ( ) { if ( pos >= length ) { throw new StringIndexOutOfBoundsException ( ) ; } return source . charAt ( pos ++ ) ; }
attempts to read a character from the current position . the caller must ensure that the source string has the data available from the current position .
