question: 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 ) ; } }
target:  Convenience method to return the next int, or throw if there are no more valid ints.