java.lang.Objectorg.apache.cocoon.xml.dom.DOMStreamer
All Implemented Interfaces:
org.apache.avalon.excalibur.pool.Recyclable, XMLProducer
DOMStreamer is a utility class that will generate SAX
events from a W3C DOM Document.
The DOMStreamer uses a different strategy based on the value of the normalizeNamespaces property:
< - a href="mailto:cziegeler@apache.org">Carsten Ziegeler< - a href="mailto:pier@apache.org">Pierpaolo Fumagalli
(Apache Software Foundation)$ - Id: DOMStreamer.java 433543 2006-08-22 06:22:54Z crossley $| Nested Class Summary: | ||
|---|---|---|
| public static class | DOMStreamer.NamespaceNormalizingDOMStreamer | Streams a DOM tree to SAX events and normalizes namespace declarations on the way.
The code in this class is based on the org.apache.xml.utils.TreeWalker class from Xalan, though it differs in some important ways. This class will automatically fix up ("normalize") namespace declarations while streaming to SAX. The original DOM-tree is not modified. The algorithm used is described in an appendix of the DOM Level 3 spec. This class will NOT check the correctness of namespaces, e.g. it will not check that the "xml" prefix is not misused etc. |
| public static class | DOMStreamer.DefaultDOMStreamer | The DefaultDOMStreamer is a utility class that will generate SAX
events from a W3C DOM Document. |
| Field Summary | ||
|---|---|---|
| protected boolean | normalizeNamespaces | Indicates whether namespace normalization should happen. |
| protected DOMStreamer.NamespaceNormalizingDOMStreamer | namespaceNormalizingDOMStreamer | DOMStreamer used in case of namespace normalization. |
| protected DOMStreamer.DefaultDOMStreamer | defaultDOMStreamer | DOMStreamer used when namespace normalization should not explicitely happen. |
| Constructor: |
|---|
DOMStreamer instance. |
DOMStreamer instance. |
DOMStreamer instance. |
DOMStreamer instance. |
| Method from org.apache.cocoon.xml.dom.DOMStreamer Summary: |
|---|
| isNormalizeNamespaces, recycle, setConsumer, setContentHandler, setLexicalHandler, setNormalizeNamespaces, stream |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.cocoon.xml.dom.DOMStreamer Detail: |
|---|
|
|
XMLConsumer that will receive XML data. |
ContentHandler that will receive XML data. |
LexicalHandler that will receive XML data. |
|
|