Class DOMBuilder

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler

    @Deprecated(since="2022-01-27")
    public class DOMBuilder
    extends AbstractSAXPipe
    Deprecated.
    This API is deprecated, migrate code to the XML APIs provided by the JDK.
    The DOMBuilder is a utility class that will generate a W3C DOM Document from SAX events.
    • Constructor Detail

      • DOMBuilder

        public DOMBuilder()
        Deprecated.
        Construct a new instance of this DOMBuilder.
      • DOMBuilder

        public DOMBuilder​(javax.xml.transform.sax.SAXTransformerFactory factory)
        Deprecated.
        Construct a new instance of this DOMBuilder.
      • DOMBuilder

        public DOMBuilder​(DOMBuilder.Listener listener)
        Deprecated.
        Construct a new instance of this DOMBuilder.
      • DOMBuilder

        public DOMBuilder​(org.w3c.dom.Node parentNode)
        Deprecated.
        Constructs a new instance that appends nodes to the given parent node.
        Note: You cannot use a Listener when appending to a Node, because the notification occurs at endDocument() which does not happen here.
      • DOMBuilder

        public DOMBuilder​(DOMBuilder.Listener listener,
                          org.w3c.dom.Node parentNode)
        Deprecated.
        Construct a new instance of this DOMBuilder.
      • DOMBuilder

        public DOMBuilder​(javax.xml.transform.sax.SAXTransformerFactory factory,
                          DOMBuilder.Listener listener,
                          org.w3c.dom.Node parentNode)
        Deprecated.
        Construct a new instance of this DOMBuilder.
    • Method Detail

      • recycle

        public void recycle()
        Deprecated.
        Recycle this builder, prepare for re-use.
        Overrides:
        recycle in class AbstractSAXProducer
      • getDocument

        public org.w3c.dom.Document getDocument()
        Deprecated.
        Return the newly built Document.
      • endDocument

        public void endDocument()
                         throws org.xml.sax.SAXException
        Deprecated.
        Receive notification of the end of a document.
        Specified by:
        endDocument in interface org.xml.sax.ContentHandler
        Overrides:
        endDocument in class AbstractSAXPipe
        Throws:
        org.xml.sax.SAXException - If this method was not called appropriately.