Public Member Functions | |
DOMEventProducer () | |
DOMEventProducer (Node node) | |
void | setDocumentHandler (DocumentHandler handler) |
void | setNode (Node node) |
void | start () throws org.xml.sax.SAXException |
Static Public Member Functions | |
static void | process (Document document, DocumentHandler handler) throws org.xml.sax.SAXException |
static void | process (Node node, DocumentHandler handler) throws org.xml.sax.SAXException |
A class for converting a DOM document to SAX events
org.exolab.castor.xml.util.DOMEventProducer.DOMEventProducer | ( | ) |
Creates a new DOMEventProducer
org.exolab.castor.xml.util.DOMEventProducer.DOMEventProducer | ( | Node | node | ) |
Creates a new DOMEventProducer for the given Node
node | the node to create the DOMEventProducer for. |
static void org.exolab.castor.xml.util.DOMEventProducer.process | ( | Document | document, | |
DocumentHandler | handler | |||
) | throws org.xml.sax.SAXException [static] |
Walks the given DOM Document and converts it into it's corresponding SAX events
document,the | Node to process into SAX events | |
handler | the DocumentHandler to send events to |
Referenced by org.exolab.castor.xml.util.DOMEventProducer.process(), and org.exolab.castor.xml.util.DOMEventProducer.start().
static void org.exolab.castor.xml.util.DOMEventProducer.process | ( | Node | node, | |
DocumentHandler | handler | |||
) | throws org.xml.sax.SAXException [static] |
Breaks down the given node into it's corresponding SAX events
node,the | Node to process into SAX events | |
handler | the DocumentHandler to send events to |
References org.exolab.castor.xml.util.DOMEventProducer.process().
void org.exolab.castor.xml.util.DOMEventProducer.setDocumentHandler | ( | DocumentHandler | handler | ) |
Sets the DocumentHandler to use when firing events
Implements org.exolab.castor.xml.EventProducer.
void org.exolab.castor.xml.util.DOMEventProducer.setNode | ( | Node | node | ) |
Sets the node which is to be converted into SAX events
node | the node which is to be converted into SAX events |
void org.exolab.castor.xml.util.DOMEventProducer.start | ( | ) | throws org.xml.sax.SAXException |
Starts producing the events for the Node which is to be converted into SAX events
Implements org.exolab.castor.xml.EventProducer.
References org.exolab.castor.xml.util.DOMEventProducer.process().