public class DOM2toSAX2
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.xml.sax.ContentHandler |
handler |
private static java.lang.String |
XMLNS_URI |
| Constructor and Description |
|---|
DOM2toSAX2() |
| Modifier and Type | Method and Description |
|---|---|
protected org.xml.sax.Attributes |
convertAttributes(org.w3c.dom.Element e)
converts DOM attributes into SAX attributes.
|
org.xml.sax.ContentHandler |
getContentHandler() |
private static java.lang.String |
nullAdjust(java.lang.String s) |
protected void |
onElement(org.w3c.dom.Element e) |
protected void |
onText(org.w3c.dom.Text t) |
void |
setContentHandler(org.xml.sax.ContentHandler handler) |
void |
traverse(org.w3c.dom.Document dom) |
private static final java.lang.String XMLNS_URI
protected org.xml.sax.ContentHandler handler
public void setContentHandler(org.xml.sax.ContentHandler handler)
public org.xml.sax.ContentHandler getContentHandler()
public void traverse(org.w3c.dom.Document dom)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected org.xml.sax.Attributes convertAttributes(org.w3c.dom.Element e)
protected void onElement(org.w3c.dom.Element e)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void onText(org.w3c.dom.Text t)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprivate static java.lang.String nullAdjust(java.lang.String s)