Class JAXPParser

  • All Implemented Interfaces:
    XMLParser

    public class JAXPParser
    extends java.lang.Object
    implements XMLParser
    Standard XMLParser implemented by using JAXP.
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      JAXPParser()
      Deprecated.
      Unsafe, use JAXPParser(factory) instead with security features initialized by setting XMLConstants.FEATURE_SECURE_PROCESSING feature.
      JAXPParser​(javax.xml.parsers.SAXParserFactory factory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parse​(org.xml.sax.InputSource source, org.xml.sax.ContentHandler handler, org.xml.sax.ErrorHandler errorHandler, org.xml.sax.EntityResolver entityResolver)
      Parses the document identified by the given input source and sends SAX events to the given content handler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JAXPParser

        public JAXPParser​(javax.xml.parsers.SAXParserFactory factory)
      • JAXPParser

        public JAXPParser()
        Deprecated.
        Unsafe, use JAXPParser(factory) instead with security features initialized by setting XMLConstants.FEATURE_SECURE_PROCESSING feature.
    • Method Detail

      • parse

        public void parse​(org.xml.sax.InputSource source,
                          org.xml.sax.ContentHandler handler,
                          org.xml.sax.ErrorHandler errorHandler,
                          org.xml.sax.EntityResolver entityResolver)
                   throws org.xml.sax.SAXException,
                          java.io.IOException
        Description copied from interface: XMLParser
        Parses the document identified by the given input source and sends SAX events to the given content handler.

        This method must be re-entrant.

        Specified by:
        parse in interface XMLParser
        errorHandler - Errors found during the parsing must be reported to this handler so that XSOM can recognize that something went wrong. Always a non-null valid object
        entityResolver - Entity resolution should be done through this interface. Can be null.
        Throws:
        org.xml.sax.SAXException - If ErrorHandler throws a SAXException, this method will tunnel it to the caller. All the other errors must be reported to the error handler.
        java.io.IOException