net.sourceforge.streamdom
Class SAXErrorHandler

net.sourceforge.streamdom.SAXErrorHandler

public class SAXErrorHandler

A simple error handler that logs its errors using System.err and System.out


Constructor Summary
SAXErrorHandler()
          Default constructor continues even if an error is encountered.
SAXErrorHandler(boolean continueAfterError)
          Specify whether or not you wish the parser to continue processing (i.e.
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 void warning(org.xml.sax.SAXParseException exception)
           
 

Constructor Detail

SAXErrorHandler

public SAXErrorHandler(boolean continueAfterError)
Specify whether or not you wish the parser to continue processing (i.e. not throw an exception) when an error is encountered. On a warning, it will continue and on a fatal error, it won't. This setting is only for errors.

SAXErrorHandler

public SAXErrorHandler()
Default constructor continues even if an error is encountered.
Method Detail

warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException