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