protected class DOMUtilsImpl.DOMUtilsSAXErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
ErrorHandler, adapted for employment in the DOMUtilsImpl.createDocumentFromXMLInstance(java.io.InputStream, iaik.ixsil.util.URI, int, java.lang.String, java.lang.String) method of the DOM utilities. Warnings, Errors and Fatal
Errors are reported only if corresponding IXSIL init properties are set true.| Modifier | Constructor and Description |
|---|---|
protected |
DOMUtilsSAXErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.xml.sax.SAXParseException exception)
This method will be called by the parser in case that an
Error has occured during
parsing. |
void |
fatalError(org.xml.sax.SAXParseException exception)
This method will be called by the parser in case that an
Fatal Error has occured during
parsing. |
protected void |
printError(java.lang.String reportProperty,
org.xml.sax.SAXParseException exception)
Prints debug information by evaluating the information in the specified exception.
|
protected void |
report(java.lang.String reportProperty,
org.xml.sax.SAXParseException exception)
Reads the specified boolean IXSIL init property.
|
void |
warning(org.xml.sax.SAXParseException exception)
This method will be called by the parser in case that an
Warning has occured during
parsing. |
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
Error has occured during
parsing. Depending on the boolean IXSIL init property
DOMUtils.ErrorHandler.reportErrors either a SAXException will be thrown or the Error
will be ignored.error in interface org.xml.sax.ErrorHandlerexception - The exception originating from the parser.org.xml.sax.SAXException - if the corresponding IXSIL init property is set to report an
Errorpublic void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
Fatal Error has occured during
parsing. Depending on the boolean IXSIL init property
DOMUtils.ErrorHandler.reportFatalErrors either a SAXException will be thrown or the
Fatal Error will be ignored.fatalError in interface org.xml.sax.ErrorHandlerexception - The exception originating from the parser.org.xml.sax.SAXException - if the corresponding IXSIL init property is set to report an
Fatal Errorpublic void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
Warning has occured during
parsing. Depending on the boolean IXSIL init property
DOMUtils.ErrorHandler.reportWarnings either a SAXException will be thrown or the
Warning will be ignored.warning in interface org.xml.sax.ErrorHandlerexception - The exception originating from the parser.org.xml.sax.SAXException - if the corresponding IXSIL init property is set to report an
Warningprotected void report(java.lang.String reportProperty,
org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
true, the
provided SAXParseException will be thrown, otherwise it will be ignored.reportProperty - Name of the the IXSIL init property.exception - The exception originating from the parser.org.xml.sax.SAXException - if the specified property is set to report the specified type of exception.protected void printError(java.lang.String reportProperty,
org.xml.sax.SAXParseException exception)
reportProperty - Indicates if the error to be printed is a warning, an error, or a fatal error.exception - The exception providing details of the error (line no, column no, message text).