nu.validator.htmlparser.test
Class SystemErrErrorHandler

java.lang.Object
  extended by nu.validator.htmlparser.test.SystemErrErrorHandler
All Implemented Interfaces:
ErrorListener, ErrorHandler

public class SystemErrErrorHandler
extends Object
implements ErrorHandler, ErrorListener

Version:
$Id: SystemErrErrorHandler.java 150 2007-08-16 19:21:25Z hsivonen $
Author:
hsivonen

Field Summary
private  boolean inError
           
private  Writer out
           
 
Constructor Summary
SystemErrErrorHandler()
           
 
Method Summary
 void error(SAXParseException e)
           
 void error(TransformerException e)
           
 void fatalError(SAXParseException e)
           
 void fatalError(TransformerException e)
           
 boolean isInError()
          Returns the inError.
 void reset()
           
 void warning(SAXParseException e)
           
 void warning(TransformerException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private Writer out

inError

private boolean inError
Constructor Detail

SystemErrErrorHandler

public SystemErrErrorHandler()
Method Detail

warning

public void warning(SAXParseException e)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)

error

public void error(SAXParseException e)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)

isInError

public boolean isInError()
Returns the inError.

Returns:
the inError

reset

public void reset()

error

public void error(TransformerException e)
           throws TransformerException
Specified by:
error in interface ErrorListener
Throws:
TransformerException

fatalError

public void fatalError(TransformerException e)
                throws TransformerException
Specified by:
fatalError in interface ErrorListener
Throws:
TransformerException

warning

public void warning(TransformerException e)
             throws TransformerException
Specified by:
warning in interface ErrorListener
Throws:
TransformerException