Package uk.ac.starlink.ttools.taplint
Class ReporterErrorHandler
- java.lang.Object
-
- uk.ac.starlink.ttools.taplint.ReporterErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class ReporterErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandlerSAX ErrorHandler implementation based on a Reporter.- Since:
- 3 Jun 2011
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description ReporterErrorHandler(Reporter reporter)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException err)voidfatalError(org.xml.sax.SAXParseException err)intgetFatalCount()Returns the number of fatal SAX errors encountered.java.lang.StringgetSummary()Returns a short summary of the errors encountered during the parse.voidwarning(org.xml.sax.SAXParseException err)
-
-
-
Constructor Detail
-
ReporterErrorHandler
public ReporterErrorHandler(Reporter reporter)
Constructor.- Parameters:
reporter- reporter object which handles delivering messages
-
-
Method Detail
-
getFatalCount
public int getFatalCount()
Returns the number of fatal SAX errors encountered.- Returns:
- fatal error count
-
getSummary
public java.lang.String getSummary()
Returns a short summary of the errors encountered during the parse.- Returns:
- summary
-
warning
public void warning(org.xml.sax.SAXParseException err)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler
-
error
public void error(org.xml.sax.SAXParseException err)
- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException err)
- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler
-
-