org.springframework.util.xml
Class SimpleSaxErrorHandler
java.lang.Object
org.springframework.util.xml.SimpleSaxErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
public class SimpleSaxErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
Simple org.xml.sax.ErrorHandler implementation:
logs warnings using the given Commons Logging logger instance,
and rethrows errors to discontinue the XML transformation.
- Since:
- 1.2
- Author:
- Juergen Hoeller
|
Constructor Summary |
SimpleSaxErrorHandler(org.apache.commons.logging.Log logger)
Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance. |
|
Method Summary |
void |
error(org.xml.sax.SAXParseException ex)
|
void |
fatalError(org.xml.sax.SAXParseException ex)
|
void |
warning(org.xml.sax.SAXParseException ex)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSaxErrorHandler
public SimpleSaxErrorHandler(org.apache.commons.logging.Log logger)
- Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance.
warning
public void warning(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
- Specified by:
warning in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
error
public void error(org.xml.sax.SAXParseException ex)
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 ex)
throws org.xml.sax.SAXException
- Specified by:
fatalError in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException