org.apache.cocoon.xml
Class AbstractSAXFragment

java.lang.Object
  |
  +--org.apache.cocoon.xml.AbstractSAXFragment
All Implemented Interfaces:
XMLFragment, XMLizable
Direct Known Subclasses:
XMLByteStreamFragment

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

Abstract implementation of XMLFragment for objects that are more easily represented as SAX events.
The toDOM() method is implemented by piping in a DOMBuilder the results of toSAX() that must be implemented by concrete subclasses.

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

Constructor Summary
AbstractSAXFragment()
           
 
Method Summary
 void toDOM(org.w3c.dom.Node node)
          Appends children representing the object's state to the given node by using the results of toSAX().
 
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.XMLizable
toSAX
 

Constructor Detail

AbstractSAXFragment

public AbstractSAXFragment()
Method Detail

toDOM

public void toDOM(org.w3c.dom.Node node)
           throws java.lang.Exception
Appends children representing the object's state to the given node by using the results of toSAX().
Specified by:
toDOM in interface XMLFragment


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