net.sf.jomic.tools
Class ImagingExceptionThrowingImagingListener

java.lang.Object
  extended by net.sf.jomic.tools.ImagingExceptionThrowingImagingListener
All Implemented Interfaces:
javax.media.jai.util.ImagingListener

public class ImagingExceptionThrowingImagingListener
extends Object
implements javax.media.jai.util.ImagingListener

ImagingListener to prevent JAI from dumping internal exceptions to System.err. Instead, the exceptions are logged, but only if the logger related to this class is set to DEBUG.

Author:
Thomas Aglassinger
See Also:
AbstractLogger.isDebugEnabled(), System.err

Constructor Summary
ImagingExceptionThrowingImagingListener()
           
 
Method Summary
 boolean errorOccurred(String message, Throwable error, Object where, boolean isRetryable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagingExceptionThrowingImagingListener

public ImagingExceptionThrowingImagingListener()
Method Detail

errorOccurred

public boolean errorOccurred(String message,
                             Throwable error,
                             Object where,
                             boolean isRetryable)
Specified by:
errorOccurred in interface javax.media.jai.util.ImagingListener