Package com.thaiopensource.xml.sax
Class CountingErrorHandler
- java.lang.Object
-
- com.thaiopensource.xml.sax.CountingErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class CountingErrorHandler extends Object implements ErrorHandler
-
-
Constructor Summary
Constructors Constructor Description CountingErrorHandler()
CountingErrorHandler(ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(SAXParseException exception)
void
fatalError(SAXParseException exception)
int
getErrorCount()
ErrorHandler
getErrorHandler()
int
getFatalErrorCount()
boolean
getHadErrorOrFatalError()
int
getWarningCount()
void
reset()
void
setErrorHandler(ErrorHandler errorHandler)
void
warning(SAXParseException exception)
-
-
-
Constructor Detail
-
CountingErrorHandler
public CountingErrorHandler()
-
CountingErrorHandler
public CountingErrorHandler(ErrorHandler errorHandler)
-
-
Method Detail
-
reset
public void reset()
-
getHadErrorOrFatalError
public boolean getHadErrorOrFatalError()
-
getFatalErrorCount
public int getFatalErrorCount()
-
getErrorCount
public int getErrorCount()
-
getWarningCount
public int getWarningCount()
-
getErrorHandler
public ErrorHandler getErrorHandler()
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
-
warning
public void warning(SAXParseException exception) throws SAXException
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
error
public void error(SAXParseException exception) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
-