Package net.sf.saxon.lib
Class DelegatingErrorListener
- java.lang.Object
-
- net.sf.saxon.lib.DelegatingErrorListener
-
- All Implemented Interfaces:
javax.xml.transform.ErrorListener,UnfailingErrorListener
public class DelegatingErrorListener extends java.lang.Object implements UnfailingErrorListener
UnfailingErrorListener is an implementation of the JAXP ErrorListener interface that wraps a supplied ErrorListener and never throws an exception
-
-
Constructor Summary
Constructors Constructor Description DelegatingErrorListener(javax.xml.transform.ErrorListener base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(javax.xml.transform.TransformerException exception)voidfatalError(javax.xml.transform.TransformerException exception)javax.xml.transform.ErrorListenergetBaseErrorListener()Get the ErrorListener that this DelegatingErrorListener delegates to.voidwarning(javax.xml.transform.TransformerException exception)
-
-
-
Method Detail
-
warning
public void warning(javax.xml.transform.TransformerException exception)
- Specified by:
warningin interfacejavax.xml.transform.ErrorListener- Specified by:
warningin interfaceUnfailingErrorListener
-
error
public void error(javax.xml.transform.TransformerException exception)
- Specified by:
errorin interfacejavax.xml.transform.ErrorListener- Specified by:
errorin interfaceUnfailingErrorListener
-
fatalError
public void fatalError(javax.xml.transform.TransformerException exception)
- Specified by:
fatalErrorin interfacejavax.xml.transform.ErrorListener- Specified by:
fatalErrorin interfaceUnfailingErrorListener
-
getBaseErrorListener
public javax.xml.transform.ErrorListener getBaseErrorListener()
Get the ErrorListener that this DelegatingErrorListener delegates to.- Returns:
- the ErrorListener originally supplied when this DelegatingErrorListener was created.
-
-