public class Dom2Sax
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.xml.sax.ContentHandler |
content |
protected org.xml.sax.ext.LexicalHandler |
lexical |
protected org.freecompany.util.multicaster.Notification |
logger |
Constructor and Description |
---|
Dom2Sax() |
Modifier and Type | Method and Description |
---|---|
void |
convert(org.w3c.dom.Node root)
Converts a DOM subtree into SAX events.
|
void |
setContentHandler(org.xml.sax.ContentHandler content) |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical) |
protected final org.freecompany.util.multicaster.Notification logger
protected org.xml.sax.ContentHandler content
protected org.xml.sax.ext.LexicalHandler lexical
public void setContentHandler(org.xml.sax.ContentHandler content)
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)
public void convert(org.w3c.dom.Node root) throws org.xml.sax.SAXException
root
- the root of the DOM subtreeorg.xml.sax.SAXException
- when the underlying content content does