| com.sun.xml.xsom.parser.XMLParser
All known Subclasses: com.sun.tools.xjc.reader.internalizer.DOMForestParser, com.sun.xml.xsom.parser.JAXPParser,
XMLParser | public interface XMLParser (Code) | | 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.
This method must be re-entrant.
Parameters: errorHandler - Errors found during the parsing must be reported tothis handler so that XSOM can recognize that something went wrong.Always a non-null valid object Parameters: entityResolver - Entity resolution should be done through this interface.Can be null. exception: SAXException - If ErrorHandler throws a SAXException, this methodwill tunnel it to the caller. |
parse | void parse(InputSource source, ContentHandler handler, ErrorHandler errorHandler, EntityResolver entityResolver) throws SAXException, IOException(Code) | | 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 tothis handler so that XSOM can recognize that something went wrong.Always a non-null valid object Parameters: entityResolver - Entity resolution should be done through this interface.Can be null. exception: SAXException - If ErrorHandler throws a SAXException, this methodwill tunnel it to the caller. All the other errorsmust be reported to the error handler. |
|
|