public class HTMLDocumentBuilder.SwingEvent2SaxAdapter extends HTMLEditorKit.ParserCallback
IMPLIED
Constructor and Description |
---|
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(HTML.Tag tag,
int pos)
Equivalent to Sax
endElement |
void |
handleError(String errorMsg,
int pos)
Swing-HTML-parser template method, no ContentHandler equivalent.
|
void |
handleSimpleTag(HTML.Tag tag,
MutableAttributeSet attributeSet,
int pos)
Equivalent to Sax
startElement plus
endElement |
void |
handleStartTag(HTML.Tag tag,
MutableAttributeSet attributeSet,
int pos)
Equivalent to Sax
startElement |
void |
handleText(char[] data,
int pos)
Equivalent to Sax
characters |
void |
parse(Reader reader,
ContentHandler saxContentHandler)
Perform Swing-HTML-parse-event-to-Sax-event conversion
|
handleEndOfLineString
public void parse(Reader reader, ContentHandler saxContentHandler) throws SAXException, IOException
SAXException
IOException
public void flush() throws BadLocationException
flush
in class HTMLEditorKit.ParserCallback
BadLocationException
public void handleText(char[] data, int pos)
characters
handleText
in class 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 HTMLEditorKit.ParserCallback
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributeSet, int pos)
startElement
handleStartTag
in class HTMLEditorKit.ParserCallback
public void handleEndTag(HTML.Tag tag, int pos)
endElement
handleEndTag
in class HTMLEditorKit.ParserCallback
public void handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributeSet, int pos)
startElement
plus
endElement
handleSimpleTag
in class HTMLEditorKit.ParserCallback
public void handleError(String errorMsg, int pos)
handleError
in class HTMLEditorKit.ParserCallback
Copyright © 2001–2017 XMLUnit. All rights reserved.