Microsoft SDK for Java

nextToken

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.

Syntax

public int nextToken() throws ParseException, IOException;

Return Value

Returns one the following token types:

TT_TEXT
TT_BEGIN_TAG
TT_END_TAG
TT_COMMENT

Exceptions

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.