Package org.apache.cocoon.xml.dom
Class DOMStreamer
java.lang.Object
org.apache.cocoon.xml.dom.DOMStreamer
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
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
DOMStreamer.NamespaceNormalizingDOMStreamer. - if false, the standard JAXP identity transformer is used.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.static classDeprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newDOMStreamerinstance.DOMStreamer(ContentHandler content) Deprecated.Create a newDOMStreamerinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.voidrecycle()Deprecated.voidsetContentHandler(ContentHandler handler) Deprecated.Set theContentHandlerthat will receive XML data.voidsetNormalizeNamespaces(boolean normalizeNamespaces) Deprecated.voidDeprecated.Start the production of SAX events.
-
Constructor Details
-
DOMStreamer
public DOMStreamer()Deprecated.Create a newDOMStreamerinstance. -
DOMStreamer
Deprecated.Create a newDOMStreamerinstance.
-
-
Method Details
-
setContentHandler
Deprecated.Set theContentHandlerthat will receive XML data. -
stream
Deprecated.Start the production of SAX events.- Throws:
SAXException
-
isNormalizeNamespaces
public boolean isNormalizeNamespaces()Deprecated. -
setNormalizeNamespaces
public void setNormalizeNamespaces(boolean normalizeNamespaces) Deprecated. -
recycle
public void recycle()Deprecated.
-