XSOM 20110809-redhat-3

com.sun.xml.xsom.parser
Interface XMLParser

All Known Implementing Classes:
JAXPParser

public interface XMLParser

Interface that hides the detail of parsing mechanism.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Method Summary
 void parse(InputSource source, ContentHandler handler, ErrorHandler errorHandler, EntityResolver entityResolver)
          Parses the document identified by the given input source and sends SAX events to the given content handler.
 

Method Detail

parse

void parse(InputSource source,
           ContentHandler handler,
           ErrorHandler errorHandler,
           EntityResolver entityResolver)
           throws SAXException,
                  IOException
Parses the document identified by the given input source and sends SAX events to the given content handler.

This method must be re-entrant.

Parameters:
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:
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.
IOException

XSOM 20110809-redhat-3

Copyright © 2012 Oracle. All Rights Reserved.