org.exolab.castor.xml.util
Class AnyNode2SAX2

java.lang.Object
  extended by org.exolab.castor.xml.util.AnyNode2SAX2

public class AnyNode2SAX2
extends java.lang.Object

A class for converting an AnyNode to SAX events

Version:
$Revision: 1.2 $ $Date: 2005/05/09 15:43:10 $
Author:
Keith Visco, Arnaud Blandin

Constructor Summary
AnyNode2SAX2()
           
AnyNode2SAX2(AnyNode node)
          Creates a AnyNode2SAX for the given node.
AnyNode2SAX2(AnyNode node, Namespaces context)
          Creates a AnyNode2SAX for the given node and the namespace context.
 
Method Summary
static void fireEvents(AnyNode node, org.xml.sax.ContentHandler handler)
           
static void fireEvents(AnyNode node, org.xml.sax.ContentHandler handler, Namespaces context)
           
 void setContentHandler(org.xml.sax.ContentHandler handler)
          Set the ContentHandler to send events to
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyNode2SAX2

public AnyNode2SAX2()

AnyNode2SAX2

public AnyNode2SAX2(AnyNode node)
Creates a AnyNode2SAX for the given node.


AnyNode2SAX2

public AnyNode2SAX2(AnyNode node,
                    Namespaces context)
Creates a AnyNode2SAX for the given node and the 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


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com