org.LexGrid.LexBIG.Impl.helpers
Class SAXPrintHandler

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.helpers.SAXPrintHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class SAXPrintHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Simple handler that prints all encountered errors and retains the most recent encountered error or fatal error.

Author:
Scott Bauer, Jesse Erdmann

Constructor Summary
SAXPrintHandler()
          Construct a new handler printing to System.out as target.
 
Method Summary
 void error(org.xml.sax.SAXParseException sap)
           
 void fatalError(org.xml.sax.SAXParseException sap)
           
 org.xml.sax.SAXParseException getError()
          Returns the most recent error or fatal error.
 void warning(org.xml.sax.SAXParseException sap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXPrintHandler

public SAXPrintHandler()
Construct a new handler printing to System.out as target.

Method Detail

getError

public org.xml.sax.SAXParseException getError()
Returns the most recent error or fatal error.

Returns:
SAXParseException

error

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

fatalError

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

warning

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

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.