public void findEndBlock() throws IOException {
  try {
    String token;
    do {
      token=readToken(";");
    }
 while (!token.equalsIgnoreCase("END") && !token.equalsIgnoreCase("ENDBLOCK"));
  }
 catch (  EOFException e) {
  }
  nextBlock=UNKNOWN_BLOCK;
}

public void findEndBlock ( ) throws IOException { try { String token ; do { token = readToken ( ";" ) ; } while ( ! token . equalsIgnoreCase ( "END" ) && ! token . equalsIgnoreCase ( "ENDBLOCK" ) ) ; } catch ( EOFException e ) { } nextBlock = UNKNOWN_BLOCK ; }
finds the end of the current block .
