Class DocumentBuilderImpl


  • public class DocumentBuilderImpl
    extends javax.xml.parsers.DocumentBuilder
    The DocumentBuilderImpl class is an HTML DOM parser that implements the standard W3C DocumentBuilder interface.
    Author:
    J. H. S.
    • Method Detail

      • parse

        public org.w3c.dom.Document parse​(org.xml.sax.InputSource is)
                                   throws org.xml.sax.SAXException,
                                          java.io.IOException
        Parses an HTML document. Note that this method will read the entire input source before returning a Document instance.
        Specified by:
        parse in class javax.xml.parsers.DocumentBuilder
        Parameters:
        is - The input source, which may be an instance of InputSourceImpl.
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        See Also:
        createDocument(InputSource)
      • createDocument

        public org.w3c.dom.Document createDocument​(org.xml.sax.InputSource is)
                                            throws org.xml.sax.SAXException,
                                                   java.io.IOException
        Creates a document without parsing the input provided, so the document object can be used for incremental rendering.
        Parameters:
        is - The input source, which may be an instance of InputSourceImpl. The input source must provide either an input stream or a reader.
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        See Also:
        HTMLDocumentImpl.load()
      • isNamespaceAware

        public boolean isNamespaceAware()
        Specified by:
        isNamespaceAware in class javax.xml.parsers.DocumentBuilder
      • isValidating

        public boolean isValidating()
        Specified by:
        isValidating in class javax.xml.parsers.DocumentBuilder
      • setEntityResolver

        public void setEntityResolver​(org.xml.sax.EntityResolver er)
        Specified by:
        setEntityResolver in class javax.xml.parsers.DocumentBuilder
      • setErrorHandler

        public void setErrorHandler​(org.xml.sax.ErrorHandler eh)
        Specified by:
        setErrorHandler in class javax.xml.parsers.DocumentBuilder
      • newDocument

        public org.w3c.dom.Document newDocument()
        Specified by:
        newDocument in class javax.xml.parsers.DocumentBuilder
      • getDOMImplementation

        public org.w3c.dom.DOMImplementation getDOMImplementation()
        Specified by:
        getDOMImplementation in class javax.xml.parsers.DocumentBuilder
      • getErrorHandler

        public org.xml.sax.ErrorHandler getErrorHandler()
      • getResolver

        public org.xml.sax.EntityResolver getResolver()