Package org.apache.xerces.util
Class ErrorHandlerProxy
- java.lang.Object
-
- org.apache.xerces.util.ErrorHandlerProxy
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public abstract class ErrorHandlerProxy extends java.lang.Object implements org.xml.sax.ErrorHandlerWrapsXMLErrorHandlerand make it look like a SAXErrorHandler.The derived class should override the
getErrorHandler()method so that it will return the correctXMLErrorHandlerinstance. This method will be called whenever an error/warning is found.Experience shows that it is better to store the actual
XMLErrorHandlerin one place and looks up that variable, rather than copying it into every component that needs an error handler and update all of them whenever it is changed, IMO.- Version:
- $Id: ErrorHandlerProxy.java 447241 2006-09-18 05:12:57Z mrglavas $
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ErrorHandlerProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException e)voidfatalError(org.xml.sax.SAXParseException e)protected abstract org.apache.xerces.xni.parser.XMLErrorHandlergetErrorHandler()voidwarning(org.xml.sax.SAXParseException e)
-
-
-
Method Detail
-
error
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
warning
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
getErrorHandler
protected abstract org.apache.xerces.xni.parser.XMLErrorHandler getErrorHandler()
-
-