| |
|
| java.lang.Object org.apache.cocoon.xml.dom.DOMStreamer
DOMStreamer | public class DOMStreamer implements XMLProducer,Recyclable(Code) | | The 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:
- if true (the default), the DOMStreamer will normalize namespace
declarations (i.e. add missing xmlns attributes or correct them). See
also
NamespaceNormalizingDOMStreamer .
- if false, the standard JAXP identity transformer is used.
author: Carsten Ziegeler author: Pierpaolo Fumagalli author: (Apache Software Foundation) version: $Id: DOMStreamer.java 433543 2006-08-22 06:22:54Z crossley $ |
Field Summary | |
protected DefaultDOMStreamer | defaultDOMStreamer DOMStreamer used when namespace normalization should not explicitely happen. | protected NamespaceNormalizingDOMStreamer | namespaceNormalizingDOMStreamer DOMStreamer used in case of namespace normalization. | protected boolean | normalizeNamespaces Indicates whether namespace normalization should happen. |
defaultDOMStreamer | protected DefaultDOMStreamer defaultDOMStreamer(Code) | | DOMStreamer used when namespace normalization should not explicitely happen.
|
namespaceNormalizingDOMStreamer | protected NamespaceNormalizingDOMStreamer namespaceNormalizingDOMStreamer(Code) | | DOMStreamer used in case of namespace normalization.
|
normalizeNamespaces | protected boolean normalizeNamespaces(Code) | | Indicates whether namespace normalization should happen.
|
DOMStreamer | public DOMStreamer()(Code) | | Create a new DOMStreamer instance.
|
DOMStreamer | public DOMStreamer(XMLConsumer consumer)(Code) | | Create a new DOMStreamer instance.
|
isNormalizeNamespaces | public boolean isNormalizeNamespaces()(Code) | | |
recycle | public void recycle()(Code) | | |
setConsumer | public void setConsumer(XMLConsumer consumer)(Code) | | Set the XMLConsumer that will receive XML data.
|
setContentHandler | public void setContentHandler(ContentHandler handler)(Code) | | Set the ContentHandler that will receive XML data.
|
setLexicalHandler | public void setLexicalHandler(LexicalHandler handler)(Code) | | Set the LexicalHandler that will receive XML data.
|
setNormalizeNamespaces | public void setNormalizeNamespaces(boolean normalizeNamespaces)(Code) | | |
|
|
|