Class DOMStreamer

java.lang.Object
org.apache.cocoon.xml.dom.DOMStreamer

@Deprecated(since="2022-01-27") public class DOMStreamer extends Object
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.
  • Constructor Details

    • DOMStreamer

      public DOMStreamer()
      Deprecated.
      Create a new DOMStreamer instance.
    • DOMStreamer

      public DOMStreamer(ContentHandler content)
      Deprecated.
      Create a new DOMStreamer instance.
  • Method Details

    • setContentHandler

      public void setContentHandler(ContentHandler handler)
      Deprecated.
      Set the ContentHandler that will receive XML data.
    • stream

      public void stream(Node node) throws SAXException
      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.