Package org.exolab.castor.xml.util
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: 6671 $ $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, Namespaces context) Creates a AnyNode2SAX for the given node and the namespace context. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
fireEvents
(AnyNode node, DocumentHandler handler) static void
fireEvents
(AnyNode node, DocumentHandler handler, Namespaces context) void
setDocumentHandler
(DocumentHandler handler) Set the Document Handlervoid
start()
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.context
- a namespace context
-
-
Method Details
-
setDocumentHandler
Set the Document Handler- Specified by:
setDocumentHandler
in interfaceEventProducer
- Parameters:
handler
- the document handler to set
-
fireEvents
- Throws:
SAXException
-
fireEvents
public static void fireEvents(AnyNode node, DocumentHandler handler, Namespaces context) throws SAXException - Throws:
SAXException
-
start
Description copied from interface:EventProducer
Signals to start producing events.- Specified by:
start
in interfaceEventProducer
- Throws:
SAXException
-