Interface XMLParser

  • All Known Implementing Classes:
    XMLParserImpl

    public interface XMLParser
    A interface to allow pluggable ways of parsing an InputStream into a DOM Document.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.w3c.dom.Document parse​(java.io.InputStream inputStream, boolean disallowDocTypeDeclarations)
      Parses a document from the input stream.
    • Method Detail

      • parse

        org.w3c.dom.Document parse​(java.io.InputStream inputStream,
                                   boolean disallowDocTypeDeclarations)
                            throws XMLParserException
        Parses a document from the input stream. Caller is responsible for closing the stream.
        Parameters:
        inputStream -
        disallowDocTypeDeclarations -
        Returns:
        Document
        Throws:
        XMLParserException