xml
Class DOMEcho.MyErrorHandler

java.lang.Object
  extended by xml.DOMEcho.MyErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
DOMEcho

private static class DOMEcho.MyErrorHandler
extends Object
implements ErrorHandler


Field Summary
private  PrintWriter out
          Error handler output goes here
 
Constructor Summary
DOMEcho.MyErrorHandler(PrintWriter out)
           
 
Method Summary
 void error(SAXParseException spe)
           
 void fatalError(SAXParseException spe)
           
private  String getParseExceptionInfo(SAXParseException spe)
          Returns a string describing parse exception details
 void warning(SAXParseException spe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private PrintWriter out
Error handler output goes here

Constructor Detail

DOMEcho.MyErrorHandler

DOMEcho.MyErrorHandler(PrintWriter out)
Method Detail

getParseExceptionInfo

private String getParseExceptionInfo(SAXParseException spe)
Returns a string describing parse exception details


warning

public void warning(SAXParseException spe)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException spe)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException spe)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException