Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface org.xml.sax.ErrorHandler
      • error

        public void error​(org.xml.sax.SAXParseException err)
        Specified by:
        error in interface org.xml.sax.ErrorHandler
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException err)
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler