public class HTMLDocumentBuilder.SwingEvent2SaxAdapter
extends javax.swing.text.html.HTMLEditorKit.ParserCallback
Constructor and Description |
---|
HTMLDocumentBuilder.SwingEvent2SaxAdapter()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
public HTMLDocumentBuilder.SwingEvent2SaxAdapter()
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