public boolean atEnd(){
  return buf == null && pos.getIndex() == text.length();
}

public boolean atEnd ( ) { return buf == null && pos . getIndex ( ) == text . length ( ) ; }
returns true if this iterator has no more characters to return .
