private int nextInt(StringTokenizer tok,String errorMsg) throws SAXException {
  if (!tok.hasMoreTokens()) {
    throw new SAXException(errorMsg);
  }
  try {
    return Integer.parseInt(tok.nextToken());
  }
 catch (  NumberFormatException nfe) {
    throw new SAXException(errorMsg);
  }
}

private int nextInt ( StringTokenizer tok , String errorMsg ) throws SAXException { if ( ! tok . hasMoreTokens ( ) ) { throw new SAXException ( errorMsg ) ; } try { return Integer . parseInt ( tok . nextToken ( ) ) ; } catch ( NumberFormatException nfe ) { throw new SAXException ( errorMsg ) ; } }
convenience method to return the next int , or throw if there are no more valid ints .
