public String nextToken(){
  skipDelimiters();
  if (currentPosition >= maxPosition) {
    throw new NoSuchElementException();
  }
  int start=currentPosition;
  while ((currentPosition < maxPosition) && (delimiters.indexOf(str.charAt(currentPosition)) < 0)) {
    currentPosition++;
  }
  if (retTokens && (start == currentPosition) && (delimiters.indexOf(str.charAt(currentPosition)) >= 0)) {
    currentPosition++;
  }
  return str.substring(start,currentPosition);
}

public String nextToken ( ) { skipDelimiters ( ) ; if ( currentPosition >= maxPosition ) { throw new NoSuchElementException ( ) ; } int start = currentPosition ; while ( ( currentPosition < maxPosition ) && ( delimiters . indexOf ( str . charAt ( currentPosition ) ) < 0 ) ) { currentPosition ++ ; } if ( retTokens && ( start == currentPosition ) && ( delimiters . indexOf ( str . charAt ( currentPosition ) ) >= 0 ) ) { currentPosition ++ ; } return str . substring ( start , currentPosition ) ; }
returns the next token from this string tokenizer .
