|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.util.DOMEventProducer
public class DOMEventProducer
A class for converting a DOM document to SAX events
| Constructor Summary | |
|---|---|
DOMEventProducer()
Creates a new DOMEventProducer |
|
DOMEventProducer(Node node)
Creates a new DOMEventProducer for the given Node |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMEventProducer()
public DOMEventProducer(Node node)
node - the node to create the DOMEventProducer for.| Method Detail |
|---|
public void setDocumentHandler(DocumentHandler handler)
setDocumentHandler in interface EventProducerpublic void setNode(Node node)
node - the node which is to be converted into SAX events
public void start()
throws SAXException
start in interface EventProducerSAXException
public static void process(Document document,
DocumentHandler handler)
throws SAXException
document - the Node to process into SAX eventshandler - the DocumentHandler to send events to
SAXException
public static void process(Node node,
DocumentHandler handler)
throws SAXException
node - the Node to process into SAX eventshandler - the DocumentHandler to send events to
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||