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.


Variable Index

 o HT_COMMENT
 o HT_EOF
 o HT_SGMLDECL
 o HT_SGMLTAG
 o HT_TEXT
 o instream
 o token

Constructor Index

 o HTML_Tokenizer(InputStream)

Method Index

 o getLastToken()
Returns the last last token read by the tokenizer
 o nextToken()
Returns the next complete token from the input stream.
 o toString()
Returns text corresponding to token

Variables

 o HT_EOF
 public static final int HT_EOF
 o HT_TEXT
 public static final int HT_TEXT
 o HT_SGMLTAG
 public static final int HT_SGMLTAG
 o HT_COMMENT
 public static final int HT_COMMENT
 o HT_SGMLDECL
 public static final int HT_SGMLDECL
 o token
 protected HTML_Token token
 o instream
 protected PushbackInputStream instream

Constructors

 o HTML_Tokenizer
 public HTML_Tokenizer(InputStream inStream) throws IOException

Methods

 o 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.

 o getLastToken
 public HTML_Token getLastToken()
Returns the last last token read by the tokenizer

 o toString
 public String toString()
Returns text corresponding to token

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index