private int nextToken ( StreamTokenizer tokeniser , Reader in , boolean ignoreEOF ) throws IOException , ParserException { int token = tokeniser . nextToken ( ) ; if ( ! ignoreEOF && token == StreamTokenizer . TT_EOF ) { throw new ParserException ( "Unexpected end of file" , getLineNumber ( tokeniser , in ) ) ; } return token ; }
Reads the next token from the tokeniser . This method throws a ParseException when reading EOF .