protected int readWhile(final String include){
  int count=0;
  while (!eof() && include.indexOf(getCurrentChar()) != -1) {
    advance();
    count++;
  }
  return count;
}

protected int readWhile ( final String include ) { int count = 0 ; while ( ! eof ( ) && include . indexOf ( getCurrentChar ( ) ) != - 1 ) { advance ( ) ; count ++ ; } return count ; }
forwards the current parsing position while the current character is contained in the given string and while the current parsing position is not the end of file .
