Class WarningListener
java.lang.Object
org.apache.sis.internal.storage.image.WarningListener
- All Implemented Interfaces:
EventListener,IIOReadWarningListener,IIOWriteWarningListener
final class WarningListener
extends Object
implements IIOReadWarningListener, IIOWriteWarningListener
A listener for warnings emitted during read or write operations.
This class forwards the warnings to the listeners associated to the data store.
- Since:
- 1.2
- Version:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StoreListenersThe set of registeredStoreListeners for the data store. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwarningOccurred(ImageReader source, String message) Reports a non-fatal error in decoding.voidwarningOccurred(ImageWriter source, int imageIndex, String message) Reports a non-fatal error in encoding.
-
Field Details
-
listeners
The set of registeredStoreListeners for the data store.
-
-
Constructor Details
-
WarningListener
WarningListener(StoreListeners listeners) Creates a new image I/O listener.
-
-
Method Details
-
warningOccurred
Reports a non-fatal error in decoding.- Specified by:
warningOccurredin interfaceIIOReadWarningListener- Parameters:
source- the reader calling this method.message- the warning.
-
warningOccurred
Reports a non-fatal error in encoding.- Specified by:
warningOccurredin interfaceIIOWriteWarningListener- Parameters:
source- the writer calling this method.imageIndex- index of the image being written.message- the warning.
-