org.exolab.castor.xml.util

Class AnyNode2SAX

Implemented Interfaces:
EventProducer

public class AnyNode2SAX
extends java.lang.Object
implements EventProducer

A class for converting an AnyNode to SAX events
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:46 $
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, DocumentHandler handler)
static void
fireEvents(AnyNode node, DocumentHandler handler, Namespaces context)
void
setDocumentHandler(DocumentHandler handler)
Set the Document Handler
void
start()

Constructor Details

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 Details

fireEvents

public static void fireEvents(AnyNode node,
                              DocumentHandler handler)
            throws SAXException

fireEvents

public static void fireEvents(AnyNode node,
                              DocumentHandler handler,
                              Namespaces context)
            throws SAXException

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
Set the Document Handler
Specified by:
setDocumentHandler in interface EventProducer
Parameters:
handler - the document handler to set

start

public void start()
            throws org.xml.sax.SAXException
Specified by:
start in interface EventProducer

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