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.ErrorHandler
SAX 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 void
error(org.xml.sax.SAXParseException err)
void
fatalError(org.xml.sax.SAXParseException err)
int
getFatalCount()
Returns the number of fatal SAX errors encountered.java.lang.String
getSummary()
Returns a short summary of the errors encountered during the parse.void
warning(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:
warning
in interfaceorg.xml.sax.ErrorHandler
-
error
public void error(org.xml.sax.SAXParseException err)
- Specified by:
error
in interfaceorg.xml.sax.ErrorHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException err)
- Specified by:
fatalError
in interfaceorg.xml.sax.ErrorHandler
-
-