Class SingleImageStore.Writable

All Implemented Interfaces:
AutoCloseable, ResourceOnFileSystem, StoreResource, DataSet, GridCoverageResource, Resource, WritableGridCoverageResource, Localized
Enclosing class:
SingleImageStore

static final class SingleImageStore.Writable extends SingleImageStore implements WritableGridCoverageResource
The writable variant of MultiImageStore.
  • Constructor Details

    • Writable

      Writable(FormatFinder format) throws DataStoreException, IOException
      Creates a new store from the given file, URL or stream.
      Parameters:
      format - information about the storage (URL, stream, etc) and the reader/writer to use.
      Throws:
      DataStoreException - if an error occurred while opening the stream.
      IOException - if an error occurred while creating the image reader instance.
  • Method Details

    • write

      public void write(GridCoverage coverage, WritableGridCoverageResource.Option... options) throws DataStoreException
      Writes a new coverage in the data store for this resource. If a coverage already exists for this resource, then it will be overwritten only if the TRUNCATE or UPDATE option is specified.
      Specified by:
      write in interface WritableGridCoverageResource
      Parameters:
      coverage - new data to write in the data store for this resource.
      options - configuration of the write operation.
      Throws:
      DataStoreException - if another error occurred while writing data in the underlying data store.