public class StandardErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
| Constructor and Description |
|---|
StandardErrorHandler(javax.xml.transform.ErrorListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.xml.sax.SAXParseException e)
Callback interface for SAX: not for application use
|
void |
fatalError(org.xml.sax.SAXParseException e)
Callback interface for SAX: not for application use
|
int |
getErrorCount()
Return the number of errors reported
|
int |
getFatalErrorCount()
Return the number of fatal errors reported
|
int |
getWarningCount()
Return the number of warnings (including warnings) reported
|
protected void |
reportError(org.xml.sax.SAXParseException e,
boolean isFatal)
Common routine for SAX errors and fatal errors
|
void |
setErrorOutput(java.io.Writer writer)
Set output for error messages produced by the default error handler.
|
void |
warning(org.xml.sax.SAXParseException e)
Callback interface for SAX: not for application use
|
public StandardErrorHandler(javax.xml.transform.ErrorListener listener)
public void setErrorOutput(java.io.Writer writer)
writer - The Writer to use for error messagespublic void warning(org.xml.sax.SAXParseException e)
warning in interface org.xml.sax.ErrorHandlerpublic void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionprotected void reportError(org.xml.sax.SAXParseException e,
boolean isFatal)
public int getWarningCount()
public int getErrorCount()
public int getFatalErrorCount()