public class SimpleSaxErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
org.xml.sax.ErrorHandler
implementation:
logs warnings using the given Commons Logging logger instance,
and rethrows errors to discontinue the XML transformation.Constructor and Description |
---|
SimpleSaxErrorHandler(Log logger)
Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance.
|
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException ex) |
void |
fatalError(org.xml.sax.SAXParseException ex) |
void |
warning(org.xml.sax.SAXParseException ex) |
public SimpleSaxErrorHandler(Log logger)
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException