|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.castor.xml.util.DOMEventProducer
A class for converting a DOM document to SAX events
| Constructor Summary | |
DOMEventProducer()
Creates a new DOMEventProducer |
|
DOMEventProducer(org.w3c.dom.Node node)
Creates a new DOMEventProducer for the given Node |
|
| Method Summary | |
static void |
process(org.w3c.dom.Document document,
org.xml.sax.DocumentHandler handler)
Walks the given DOM Document and converts it into it's corresponding SAX events |
static void |
process(org.w3c.dom.Node node,
org.xml.sax.DocumentHandler handler)
Breaks down the given node into it's corresponding SAX events |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets the DocumentHandler to use when firing events |
void |
setNode(org.w3c.dom.Node node)
Sets the node which is to be converted into SAX events |
void |
start()
Starts producing the events for the Node which is to be converted into SAX events |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMEventProducer()
public DOMEventProducer(org.w3c.dom.Node node)
node - the node to create the DOMEventProducer for.| Method Detail |
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler in interface EventProducerpublic void setNode(org.w3c.dom.Node node)
node - the node which is to be converted into SAX events
public void start()
throws org.xml.sax.SAXException
start in interface EventProducerorg.xml.sax.SAXException
public static void process(org.w3c.dom.Document document,
org.xml.sax.DocumentHandler handler)
throws org.xml.sax.SAXException
document - the Node to process into SAX eventshandler - the DocumentHandler to send events to
org.xml.sax.SAXException
public static void process(org.w3c.dom.Node node,
org.xml.sax.DocumentHandler handler)
throws org.xml.sax.SAXException
node - the Node to process into SAX eventshandler - the DocumentHandler to send events to
org.xml.sax.SAXException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||