All Packages Class Hierarchy This Package Previous Next Index
Class HTML.HTML_Tokenizer
java.lang.Object
|
+----HTML.HTML_Tokenizer
- public class HTML_Tokenizer
- extends Object
A tokenizer that given an input stream, parses it into HTML tokens.
-
HT_COMMENT
-
-
HT_EOF
-
-
HT_SGMLDECL
-
-
HT_SGMLTAG
-
-
HT_TEXT
-
-
instream
-
-
token
-
-
HTML_Tokenizer(InputStream)
-
-
getLastToken()
- Returns the last last token read by the tokenizer
-
nextToken()
- Returns the next complete token from the input stream.
-
toString()
- Returns text corresponding to token
HT_EOF
public static final int HT_EOF
HT_TEXT
public static final int HT_TEXT
HT_SGMLTAG
public static final int HT_SGMLTAG
HT_COMMENT
public static final int HT_COMMENT
HT_SGMLDECL
public static final int HT_SGMLDECL
token
protected HTML_Token token
instream
protected PushbackInputStream instream
HTML_Tokenizer
public HTML_Tokenizer(InputStream inStream) throws IOException
nextToken
public int nextToken()
- Returns the next complete token from the input stream. A complete
token is either surrounded by '<' and '>' or is text that is
preceded and followed by these characters.
getLastToken
public HTML_Token getLastToken()
- Returns the last last token read by the tokenizer
toString
public String toString()
- Returns text corresponding to token
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index