This method of the HTMLTokenizer Class parses the next token from the input stream. The white space that follows the token and the first character of the next token is consumed.
public int nextToken() throws ParseException, IOException;
Returns one the following token types:
TT_TEXT
TT_BEGIN_TAG
TT_END_TAG
TT_COMMENT
java.util.NoSuchElementException if a null token is received.
java.text.ParseException if no tag is found after a less than (<) symbol or a tag does not have a matching greater than (>) symbol.