org.apache.cocoon.xml
Class AbstractSAXFragment

java.lang.Object
  extended byorg.apache.cocoon.xml.AbstractSAXFragment
All Implemented Interfaces:
org.apache.cocoon.xml.XMLFragment, XMLizable
Direct Known Subclasses:
SaxBuffer, XMLByteStreamFragment

public abstract class AbstractSAXFragment
extends Object
implements org.apache.cocoon.xml.XMLFragment

Abstract implementation of XMLFragment for objects that are more easily represented as SAX events.

The toDOM(org.w3c.dom.Node) method is implemented by piping in a DOMBuilder the results of XMLizable.toSAX(ContentHandler) that must be implemented by concrete subclasses.

Version:
$Id: AbstractSAXFragment.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
AbstractSAXFragment()
           
 
Method Summary
 void toDOM(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.excalibur.xml.sax.XMLizable
toSAX
 

Constructor Detail

AbstractSAXFragment

public AbstractSAXFragment()
Method Detail

toDOM

public void toDOM(Node node)
           throws Exception
Appends children representing the object's state to the given node by using the results of toSAX().

Specified by:
toDOM in interface org.apache.cocoon.xml.XMLFragment
Throws:
Exception


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.