| Constructor and Description |
|---|
JAXPParser()
Deprecated.
Unsafe, use JAXPParser(factory) instead with
security features initialized by setting
XMLConstants.FEATURE_SECURE_PROCESSING feature.
|
JAXPParser(SAXParserFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JAXPParser(SAXParserFactory factory)
public JAXPParser()
public void parse(InputSource source, ContentHandler handler, ErrorHandler errorHandler, EntityResolver entityResolver) throws SAXException, IOException
XMLParserThis method must be re-entrant.
parse in interface XMLParsererrorHandler - 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 objectentityResolver - Entity resolution should be done through this interface.
Can be null.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.IOExceptionCopyright © 2005–2017 Oracle Corporation. All rights reserved.