String category = st.nextToken(); String action   = st.nextToken(); String stem     = st.nextToken(); String extn     = st.nextToken(); _verbose( "Found cat=`" + category + "', action=`" + action + "', stem=`" + stem + "', extn=`" + extn + "'" ); if (!_dispatch(category, action, stem, extn)) {
List tokens = new ArrayList(); while (st.hasMoreTokens()) { tokens.add(st.nextToken()); } _verbose("Received tokens " + tokens); if (!_dispatch(tokens)) {
  private static void _cvsReadAndExecute() {    if (path != null) {      try {         BufferedReader  br    = new BufferedReader(new FileReader(path));        String          line  = null;         while ((line=br.readLine()) != null){           StringTokenizer st = new StringTokenizer(line, ",");          // FIXME Blindly assume that if we have two tokens, they are two          //       *good* tokens          if (st.countTokens() == 4) {            String category = st.nextToken();            String action   = st.nextToken();            String stem     = st.nextToken();            String extn     = st.nextToken();            _verbose(              "Found cat=`" + category + "', action=`" + action +               "', stem=`" + stem + "', extn=`" + extn + "'"            );            if (!_dispatch(category, action, stem, extn)) {              _verbose("Error dispatching '" + line + "'");            }          } else {            System.err.println("Skipping, invalid format: '" + line + "'");          }        }         br.close();       } catch (IOException e) {         System.err.println("Error processing '" + path + "': " + e);      }    } else {      _usage();    }  }