当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
SimpleSaxErrorHandler (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.util.xml
Class SimpleSaxErrorHandler
java.lang.Object
org.springframework.util.xml.SimpleSaxErrorHandler
- All Implemented Interfaces:
- ErrorHandler
public class SimpleSaxErrorHandler
- extends Object
- implements 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(Log logger)
Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSaxErrorHandler
public SimpleSaxErrorHandler(Log logger)
- Create a new SimpleSaxErrorHandler for the given
Commons Logging logger instance.
warning
public void warning(SAXParseException ex)
throws SAXException
- Specified by:
warning
in interface ErrorHandler
- Throws:
SAXException
error
public void error(SAXParseException ex)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException ex)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Throws:
SAXException
Copyright © 2002-2007 The Spring Framework.