Modifier and Type | Class and Description |
---|---|
private static class |
JAXPParser.XMLReaderEx
XMLReader with improved error message for entity resolution failure.
|
Modifier and Type | Field and Description |
---|---|
private javax.xml.parsers.SAXParserFactory |
factory |
Constructor and Description |
---|
JAXPParser() |
JAXPParser(javax.xml.parsers.SAXParserFactory factory) |
Modifier and Type | Method and 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.
|
public JAXPParser(javax.xml.parsers.SAXParserFactory factory)
public JAXPParser()
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
XMLParser
This method must be re-entrant.
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 objectentityResolver
- Entity resolution should be done through this interface.
Can be null.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