public class DOM2toSAX2 extends Object
Modifier and Type | Field and Description |
---|---|
protected ContentHandler |
handler |
Constructor and Description |
---|
DOM2toSAX2() |
Modifier and Type | Method and Description |
---|---|
protected Attributes |
convertAttributes(Element e)
converts DOM attributes into SAX attributes.
|
ContentHandler |
getContentHandler() |
protected void |
onElement(Element e) |
protected void |
onText(Text t) |
void |
setContentHandler(ContentHandler handler) |
void |
traverse(Document dom) |
protected ContentHandler handler
public void setContentHandler(ContentHandler handler)
public ContentHandler getContentHandler()
public void traverse(Document dom) throws SAXException
SAXException
protected Attributes convertAttributes(Element e)
protected void onElement(Element e) throws SAXException
SAXException
protected void onText(Text t) throws SAXException
SAXException
Copyright © 2016 Oracle Corporation. All rights reserved.