|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.text.html.HTMLEditorKit.ParserCallback | +--org.enhydra.xml.xmlc.html.parsers.swing.SwingParser
Interface to the Swing HTML parser. This attempts to correct problem with using the SWING HTML 3.2 parser to parse HTML 4.0 constructs and well as general bugginess in the Swing parser.
The known Swing problems are:
Nested Class Summary | |
(package private) class |
SwingParser.ParserError
Error thrown to stop parser. |
Field Summary |
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
IMPLIED |
Constructor Summary | |
(package private) |
SwingParser()
|
Method Summary | |
void |
flush()
|
void |
handleComment(char[] data,
int pos)
Swing comment handler. |
void |
handleEndTag(javax.swing.text.html.HTML.Tag tag,
int pos)
Swing end tag start handler. |
void |
handleError(java.lang.String errorMsg,
int pos)
Swing parser error handler that tries to manage the message generated by parser that should really be ignored. |
void |
handleSimpleTag(javax.swing.text.html.HTML.Tag tag,
javax.swing.text.MutableAttributeSet attrSet,
int pos)
Swing simple tag start handler. |
void |
handleStartTag(javax.swing.text.html.HTML.Tag tag,
javax.swing.text.MutableAttributeSet attrSet,
int pos)
Swing tag start handler. |
void |
handleText(char[] data,
int pos)
Swing text handler. |
(package private) void |
parse(HTMLDocBuilder docBuilder,
ErrorReporter errorReporter,
ParseTracer tracer,
java.io.Reader input,
LineNumberMap lineNumberMap)
Parse a file into a DOM. |
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
handleEndOfLineString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
SwingParser()
Method Detail |
void parse(HTMLDocBuilder docBuilder, ErrorReporter errorReporter, ParseTracer tracer, java.io.Reader input, LineNumberMap lineNumberMap) throws XMLCException, java.io.IOException
XMLCException
java.io.IOException
public void flush() throws javax.swing.text.BadLocationException
flush
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
javax.swing.text.BadLocationException
public void handleText(char[] data, int pos)
handleText
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
HTMLEditorKit.ParserCallback#handleText
public void handleComment(char[] data, int pos)
handleComment
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
HTMLEditorKit.ParserCallback#handleComment
public void handleStartTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrSet, int pos)
handleStartTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
HTMLEditorKit.ParserCallback#handleStartTag
public void handleEndTag(javax.swing.text.html.HTML.Tag tag, int pos)
handleEndTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
HTMLEditorKit.ParserCallback#handleEndTag
public void handleSimpleTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrSet, int pos)
handleSimpleTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
HTMLEditorKit.ParserCallback#handleSimpleTag
public void handleError(java.lang.String errorMsg, int pos)
handleError
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
HTMLEditorKit.ParserCallback#handleError
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |