Class AbstractGridCoverageResource

java.lang.Object
org.apache.sis.storage.AbstractResource
org.apache.sis.storage.AbstractGridCoverageResource
All Implemented Interfaces:
DataSet, GridCoverageResource, Resource
Direct Known Subclasses:
ConcatenatedGridResource, CoverageSubset, MemoryGridResource, TiledGridResource, WorldFileResource

public abstract class AbstractGridCoverageResource extends AbstractResource implements GridCoverageResource
Default implementations of several methods for classes that want to implement the GridCoverageResource interface. Subclasses should override the following methods: This class also provides the following helper methods for implementation of the read(…) method in subclasses:
Since:
1.2
Version:
1.2
  • Constructor Details

    • AbstractGridCoverageResource

      protected AbstractGridCoverageResource(StoreListeners parentListeners, boolean hidden)
      Creates a new resource which can send notifications to the given set of listeners. If hidden is false (the recommended value), then this resource will have its own set of listeners with this resource declared as the source of events. It will be possible to add and remove listeners independently from the set of parent listeners. Conversely if hidden is true, then the given listeners will be used directly and this resource will not appear as the source of any event.

      In any cases, the listeners of all parents (ultimately the data store that created this resource) will always be notified, either directly if hidden is true or indirectly if hidden is false.

      Parameters:
      parentListeners - listeners of the parent resource, or null if none. This is usually the listeners of the DataStore that created this resource.
      hidden - false if this resource shall use its own StoreListeners with the specified parent, or true for using parentListeners directly.
  • Method Details