Class AnyNode2SAX
java.lang.Object
org.exolab.castor.xml.util.AnyNode2SAX
- All Implemented Interfaces:
EventProducer
A class for converting an AnyNode to SAX events
- Version:
- $Revision: 9147 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Arnaud Blandin
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor.AnyNode2SAX(AnyNode node) Creates a AnyNode2SAX for the given node.AnyNode2SAX(AnyNode node, NamespacesStack namespacesStack) Creates a AnyNode2SAX for the given node and the namespace context. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfireEvents(AnyNode node, DocumentHandler handler) static voidfireEvents(AnyNode node, DocumentHandler handler, NamespacesStack namespacesStack) voidsetDocumentHandler(DocumentHandler handler) Set the Document Handlervoidstart()Signals to start producing events.
-
Constructor Details
-
AnyNode2SAX
public AnyNode2SAX()No-arg constructor. -
AnyNode2SAX
Creates a AnyNode2SAX for the given node.- Parameters:
node- the AnyNode to create AnyNode2SAX for.
-
AnyNode2SAX
Creates a AnyNode2SAX for the given node and the namespace context.- Parameters:
node- the AnyNode to create AnyNode2SAX for.namespacesStack- the namespace stack
-
-
Method Details
-
setDocumentHandler
Set the Document Handler- Specified by:
setDocumentHandlerin interfaceEventProducer- Parameters:
handler- the document handler to set
-
fireEvents
- Throws:
SAXException
-
fireEvents
public static void fireEvents(AnyNode node, DocumentHandler handler, NamespacesStack namespacesStack) throws SAXException - Throws:
SAXException
-
start
Description copied from interface:EventProducerSignals to start producing events.- Specified by:
startin interfaceEventProducer- Throws:
SAXException
-