Class DOMBuilderContentHandlerFactory

  • All Implemented Interfaces:
    ContentHandlerFactory

    public class DOMBuilderContentHandlerFactory
    extends java.lang.Object
    implements ContentHandlerFactory
    ContentHandlerFactory which constructs ContentHandlers that build DOM Documents.
    • Constructor Detail

      • DOMBuilderContentHandlerFactory

        public DOMBuilderContentHandlerFactory​(java.lang.String namespaceURI,
                                               org.w3c.dom.DOMImplementation domImplementation)
        Main Constructor
        Parameters:
        namespaceURI - the main namespace URI for the DOM to be parsed
        domImplementation - the DOMImplementation to use for build the DOM
    • Method Detail

      • createContentHandler

        public org.xml.sax.ContentHandler createContentHandler()
                                                        throws org.xml.sax.SAXException
        Specified by:
        createContentHandler in interface ContentHandlerFactory
        Returns:
        a new ContentHandler to handle a SAX stream
        Throws:
        org.xml.sax.SAXException - if there's an error while preparing the ContentHandler