Interface DescriptorIo

    • Method Detail

      • parseXml

        org.jdom2.Document parseXml​(InputStream documentStream)
                             throws org.jdom2.JDOMException,
                                    IOException
        Parse XML into a document.
        Parameters:
        documentStream - stream containing XML
        Returns:
        the document
        Throws:
        IOException - if error reading
        org.jdom2.JDOMException - if error constructing document
      • parseXml

        org.jdom2.Document parseXml​(InputStream theInput,
                                    EntityResolver theEntityResolver)
                             throws org.jdom2.JDOMException,
                                    IOException
        Parameters:
        theInput - Input XML stream
        theEntityResolver - Entity Resolver
        Returns:
        the document
        Throws:
        IOException - if error reading
        org.jdom2.JDOMException - if error constructing document
      • createDocumentBuilder

        org.jdom2.input.SAXBuilder createDocumentBuilder()
        Create a document builder.
        Returns:
        new document builder
      • createDocumentBuilder

        org.jdom2.input.SAXBuilder createDocumentBuilder​(EntityResolver theEntityResolver)
        Parameters:
        theEntityResolver - entity resolver or null
        Returns:
        a new non-validating, non-namespace-aware DocumentBuilder instance