org.exolab.castor.xml.util
Class DOMEventProducer
java.lang.Object
org.exolab.castor.xml.util.DOMEventProducer
- EventProducer
public class DOMEventProducer
extends java.lang.Object
A class for converting a DOM document to SAX events
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:48 $
static void | process(Document document, DocumentHandler handler) - Walks the given DOM Document and converts it into it's corresponding
SAX events
|
static void | process(Node node, DocumentHandler handler) - Breaks down the given node into it's corresponding SAX events
|
void | setDocumentHandler(DocumentHandler handler) - Sets the DocumentHandler to use when firing events
|
void | setNode(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
|
DOMEventProducer
public DOMEventProducer()
Creates a new DOMEventProducer
DOMEventProducer
public DOMEventProducer(Node node)
Creates a new DOMEventProducer for the given Node
node
- the node to create the DOMEventProducer for.
process
public static void process(Document document,
DocumentHandler handler)
throws org.xml.sax.SAXException
Walks the given DOM Document and converts it into it's corresponding
SAX events
handler
- the DocumentHandler to send events to
process
public static void process(Node node,
DocumentHandler handler)
throws org.xml.sax.SAXException
Breaks down the given node into it's corresponding SAX events
handler
- the DocumentHandler to send events to
setDocumentHandler
public void setDocumentHandler(DocumentHandler handler)
Sets the DocumentHandler to use when firing events
- setDocumentHandler in interface EventProducer
setNode
public void 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
start
public void start()
throws org.xml.sax.SAXException
Starts producing the events for the Node which is to be
converted into SAX events
- start in interface EventProducer
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com