|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.htmlutil.TextParser
Provides a framework for basic text parsing.
Field Summary | |
private StreamTokenizer |
st
Deprecated. The underlying StreamTokenizer that is used to parse the text stream. |
private static String |
versionID
Deprecated. |
Constructor Summary | |
TextParser(Reader istream)
Deprecated. Creates a StreamTokenizer from istream, and then sets the StreamTokenizer's syntax table. |
|
TextParser(String itext)
Deprecated. Converts the itext to a Reader, then calls the other constructor. |
Method Summary | |
(package private) abstract void |
handleDefault(char c)
Deprecated. |
(package private) abstract void |
handleEof()
Deprecated. Handles the end of the file. |
(package private) abstract void |
handleEol(String eolChar)
Deprecated. Handles the end of a line. |
(package private) abstract void |
handleNumber(double num)
Deprecated. |
(package private) abstract void |
handleWord(String word)
Deprecated. Handles a word. |
Object |
parse()
Deprecated. Loops until the end of the stream is reached, calling the abstract parseWord(), handleEol() and handleEof() methods as appropriate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private StreamTokenizer st
Constructor Detail |
public TextParser(Reader istream)
public TextParser(String itext)
Method Detail |
public Object parse() throws IOException
IOException
UrlLister, UrlAwareTextFormatter
abstract void handleWord(String word) throws IOException
IOException
abstract void handleEol(String eolChar) throws IOException
IOException
abstract void handleDefault(char c) throws IOException
IOException
abstract void handleEof()
abstract void handleNumber(double num) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |