org.apache.cocoon.xml
Class AbstractDOMFragment
java.lang.Object
org.apache.cocoon.xml.AbstractDOMFragment
- All Implemented Interfaces:
- org.apache.cocoon.xml.XMLFragment, XMLizable
- public abstract class AbstractDOMFragment
- extends Object
- implements org.apache.cocoon.xml.XMLFragment
Abstract implementation of XMLFragment
for objects that are more
easily represented as a DOM.
The toSAX(org.xml.sax.ContentHandler)
method is implemented by streaming (using a
DOMStreamer
) the results of the XMLFragment.toDOM(Node)
that must be
implemented by concrete subclasses.
- Version:
- $Id: AbstractDOMFragment.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Method Summary |
void |
toSAX(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 |
AbstractDOMFragment
public AbstractDOMFragment()
toSAX
public void toSAX(ContentHandler handler)
throws SAXException
- Generates SAX events representing the object's state by serializing the
result of
toDOM()
.
- Specified by:
toSAX
in interface XMLizable
- Throws:
SAXException
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.