private void findToken(String query,boolean ignoreCase) throws IOException {
  String token;
  boolean found=false;
  do {
    token=readToken();
    if ((ignoreCase && token.equalsIgnoreCase(query)) || token.equals(query)) {
      found=true;
    }
  }
 while (!found);
}

private void findToken ( String query , boolean ignoreCase ) throws IOException { String token ; boolean found = false ; do { token = readToken ( ) ; if ( ( ignoreCase && token . equalsIgnoreCase ( query ) ) || token . equals ( query ) ) { found = true ; } } while ( ! found ) ; }
finds the end of the current block .
