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 class
Deprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.static class
Deprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newDOMStreamer
instance.DOMStreamer
(ContentHandler content) Deprecated.Create a newDOMStreamer
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.void
recycle()
Deprecated.void
setContentHandler
(ContentHandler handler) Deprecated.Set theContentHandler
that will receive XML data.void
setNormalizeNamespaces
(boolean normalizeNamespaces) Deprecated.void
Deprecated.Start the production of SAX events.
-
Constructor Details
-
DOMStreamer
public DOMStreamer()Deprecated.Create a newDOMStreamer
instance. -
DOMStreamer
Deprecated.Create a newDOMStreamer
instance.
-
-
Method Details
-
setContentHandler
Deprecated.Set theContentHandler
that 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.
-