Class 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
      void error​(javax.xml.transform.TransformerException exception)  
      void fatalError​(javax.xml.transform.TransformerException exception)  
      javax.xml.transform.ErrorListener getBaseErrorListener()
      Get the ErrorListener that this DelegatingErrorListener delegates to.
      void warning​(javax.xml.transform.TransformerException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingErrorListener

        public DelegatingErrorListener​(javax.xml.transform.ErrorListener base)
    • Method Detail

      • warning

        public void warning​(javax.xml.transform.TransformerException exception)
        Specified by:
        warning in interface javax.xml.transform.ErrorListener
        Specified by:
        warning in interface UnfailingErrorListener
      • error

        public void error​(javax.xml.transform.TransformerException exception)
        Specified by:
        error in interface javax.xml.transform.ErrorListener
        Specified by:
        error in interface UnfailingErrorListener
      • fatalError

        public void fatalError​(javax.xml.transform.TransformerException exception)
        Specified by:
        fatalError in interface javax.xml.transform.ErrorListener
        Specified by:
        fatalError in interface UnfailingErrorListener
      • 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.