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
|
handleEndOfLineStringpublic void parse(Reader reader, ContentHandler saxContentHandler) throws SAXException, IOException
reader - reader to read the document fromsaxContentHandler - content handler receiving SAX events while parsing the documentSAXException - if the parser feels like itIOException - on I/O errorspublic void flush()
throws BadLocationException
flush in class HTMLEditorKit.ParserCallbackBadLocationExceptionpublic void handleText(char[] data,
int pos)
charactershandleText in class HTMLEditorKit.ParserCallbackpublic 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.ParserCallbackpublic void handleStartTag(HTML.Tag tag, MutableAttributeSet attributeSet, int pos)
startElementhandleStartTag in class HTMLEditorKit.ParserCallbackpublic void handleEndTag(HTML.Tag tag, int pos)
endElementhandleEndTag in class HTMLEditorKit.ParserCallbackpublic void handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributeSet, int pos)
startElement plus
endElementhandleSimpleTag in class HTMLEditorKit.ParserCallbackpublic void handleError(String errorMsg, int pos)
handleError in class HTMLEditorKit.ParserCallbackCopyright © 2001–2025 XMLUnit. All rights reserved.