|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.html.HTMLEditorKit.ParserCallback
org.custommonkey.xmlunit.HTMLDocumentBuilder.SwingEvent2SaxAdapter
public class HTMLDocumentBuilder.SwingEvent2SaxAdapter
Adapts Swing HTML callback messages to Sax equivalents, passing them to a Sax-aware ContentHandler.
Field Summary |
---|
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
---|
IMPLIED |
Constructor Summary | |
---|---|
HTMLDocumentBuilder.SwingEvent2SaxAdapter()
Default constructor |
Method Summary | |
---|---|
void |
flush()
Swing-HTML-parser template method, no ContentHandler equivalent |
void |
handleComment(char[] data,
int pos)
Equivalent to Sax LexicalHandler comment method. |
void |
handleEndTag(javax.swing.text.html.HTML.Tag tag,
int pos)
Equivalent to Sax endElement |
void |
handleError(java.lang.String errorMsg,
int pos)
Swing-HTML-parser template method, no ContentHandler equivalent. |
void |
handleSimpleTag(javax.swing.text.html.HTML.Tag tag,
javax.swing.text.MutableAttributeSet attributeSet,
int pos)
Equivalent to Sax startElement plus
endElement |
void |
handleStartTag(javax.swing.text.html.HTML.Tag tag,
javax.swing.text.MutableAttributeSet attributeSet,
int pos)
Equivalent to Sax startElement |
void |
handleText(char[] data,
int pos)
Equivalent to Sax characters |
void |
parse(java.io.Reader reader,
org.xml.sax.ContentHandler saxContentHandler)
Perform Swing-HTML-parse-event-to-Sax-event conversion |
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 |
---|
public HTMLDocumentBuilder.SwingEvent2SaxAdapter()
Method Detail |
---|
public void parse(java.io.Reader reader, org.xml.sax.ContentHandler saxContentHandler) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
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)
characters
handleText
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
public void handleComment(char[] data, int pos)
comment
method.
If the supplied ContentHandler is also an LexicalHandler then the
cast will be made and the sax event passed on.
handleComment
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
public void handleStartTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attributeSet, int pos)
startElement
handleStartTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
public void handleEndTag(javax.swing.text.html.HTML.Tag tag, int pos)
endElement
handleEndTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
public void handleSimpleTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attributeSet, int pos)
startElement
plus
endElement
handleSimpleTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
public void handleError(java.lang.String errorMsg, int pos)
handleError
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |