org.exolab.castor.xml.util
Class AnyNode2SAX

java.lang.Object
  extended by org.exolab.castor.xml.util.AnyNode2SAX
All Implemented Interfaces:
EventProducer

public class AnyNode2SAX
extends java.lang.Object
implements EventProducer

A class for converting an AnyNode to SAX events

Version:
$Revision: 1.4 $ $Date: 2004/09/09 22:19:30 $
Author:
Arnaud Blandin

Constructor Summary
AnyNode2SAX()
           
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
static void fireEvents(AnyNode node, org.xml.sax.DocumentHandler handler)
           
static void fireEvents(AnyNode node, org.xml.sax.DocumentHandler handler, Namespaces context)
           
 void setDocumentHandler(org.xml.sax.DocumentHandler handler)
          Set the Document Handler
 void start()
          Signals to start producing events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyNode2SAX

public AnyNode2SAX()

AnyNode2SAX

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


AnyNode2SAX

public AnyNode2SAX(AnyNode node,
                   Namespaces context)
Creates a AnyNode2SAX for the given node and the namespace context.

Method Detail

setDocumentHandler

public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
Set the Document Handler

Specified by:
setDocumentHandler in interface EventProducer
Parameters:
handler - the document handler to set

fireEvents

public static void fireEvents(AnyNode node,
                              org.xml.sax.DocumentHandler handler)
                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

fireEvents

public static void fireEvents(AnyNode node,
                              org.xml.sax.DocumentHandler handler,
                              Namespaces context)
                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

start

public void start()
           throws org.xml.sax.SAXException
Description copied from interface: EventProducer
Signals to start producing events.

Specified by:
start in interface EventProducer
Throws:
org.xml.sax.SAXException


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