Package org.apache.cocoon.xml.dom
Class DOMStreamer
- java.lang.Object
-
- org.apache.cocoon.xml.dom.DOMStreamer
-
@Deprecated(since="2022-01-27") public class DOMStreamer extends java.lang.Object
Deprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.TheDOMStreamer
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.
- if true (the default), the DOMStreamer will normalize namespace
declarations (i.e. add missing xmlns attributes or correct them). See
also
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DOMStreamer.DefaultDOMStreamer
Deprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.static class
DOMStreamer.NamespaceNormalizingDOMStreamer
Deprecated.This API is deprecated, migrate code to the XML APIs provided by the JDK.
-
Constructor Summary
Constructors Constructor Description DOMStreamer()
Deprecated.Create a newDOMStreamer
instance.DOMStreamer(org.xml.sax.ContentHandler content)
Deprecated.Create a newDOMStreamer
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isNormalizeNamespaces()
Deprecated.void
recycle()
Deprecated.void
setContentHandler(org.xml.sax.ContentHandler handler)
Deprecated.Set theContentHandler
that will receive XML data.void
setNormalizeNamespaces(boolean normalizeNamespaces)
Deprecated.void
stream(org.w3c.dom.Node node)
Deprecated.Start the production of SAX events.
-
-
-
Method Detail
-
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
Deprecated.Set theContentHandler
that will receive XML data.
-
stream
public void stream(org.w3c.dom.Node node) throws org.xml.sax.SAXException
Deprecated.Start the production of SAX events.- Throws:
org.xml.sax.SAXException
-
isNormalizeNamespaces
public boolean isNormalizeNamespaces()
Deprecated.
-
setNormalizeNamespaces
public void setNormalizeNamespaces(boolean normalizeNamespaces)
Deprecated.
-
recycle
public void recycle()
Deprecated.
-
-