org.apache.cocoon.xml
Class AbstractDOMFragment

java.lang.Object
  |
  +--org.apache.cocoon.xml.AbstractDOMFragment
All Implemented Interfaces:
XMLFragment, XMLizable

public abstract class AbstractDOMFragment
extends java.lang.Object
implements XMLFragment

Abstract implementation of XMLFragment for objects that are more easily represented as a DOM.
The toSAX() method is implemented by streaming (using a DOMStreamer) the results of toDOM() that must be implemented by concrete subclasses.

Version:
CVS $Id: AbstractDOMFragment.java,v 1.4 2002/02/22 07:03:58 cziegeler Exp $
Author:
Sylvain Wallez

Constructor Summary
AbstractDOMFragment()
           
 
Method Summary
 void toSAX(org.xml.sax.ContentHandler handler)
          Generates SAX events representing the object's state by serializing the result of toDOM().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.xml.XMLFragment
toDOM
 

Constructor Detail

AbstractDOMFragment

public AbstractDOMFragment()
Method Detail

toSAX

public void toSAX(org.xml.sax.ContentHandler handler)
           throws org.xml.sax.SAXException
Generates SAX events representing the object's state by serializing the result of toDOM().
Specified by:
toSAX in interface XMLizable


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.