Package org.exolab.castor.xml.util
Class AnyNode2SAX2
- java.lang.Object
-
- org.exolab.castor.xml.util.AnyNode2SAX2
-
public class AnyNode2SAX2 extends java.lang.ObjectA class for converting an AnyNode to SAX events.- Version:
- $Revision: 8144 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Keith Visco, Arnaud Blandin
-
-
Constructor Summary
Constructors Constructor Description AnyNode2SAX2()No-arg constructor.AnyNode2SAX2(AnyNode node)Creates a AnyNode2SAX for the given node.AnyNode2SAX2(AnyNode node, Namespaces context)Creates a AnyNode2SAX2 for the given node and the namespace context.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidfireEvents(AnyNode node, org.xml.sax.ContentHandler handler)static voidfireEvents(AnyNode node, org.xml.sax.ContentHandler handler, Namespaces context)voidsetContentHandler(org.xml.sax.ContentHandler handler)Set the ContentHandler to send events to.voidstart()
-
-
-
Constructor Detail
-
AnyNode2SAX2
public AnyNode2SAX2()
No-arg constructor.
-
AnyNode2SAX2
public AnyNode2SAX2(AnyNode node)
Creates a AnyNode2SAX for the given node.- Parameters:
node- the AnyNode to create AnyNode2SAX2 for.
-
AnyNode2SAX2
public AnyNode2SAX2(AnyNode node, Namespaces context)
Creates a AnyNode2SAX2 for the given node and the namespace context.- Parameters:
node- the AnyNode to create AnyNode2SAX for.context- a namespace context
-
-
Method Detail
-
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
Set the ContentHandler to send events to.- Parameters:
handler- the document handler to set
-
fireEvents
public static void fireEvents(AnyNode node, org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
fireEvents
public static void fireEvents(AnyNode node, org.xml.sax.ContentHandler handler, Namespaces context) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
start
public void start() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
-