Class StoreProvider


public final class StoreProvider extends URIDataStore.Provider
The provider of WKT Store instances.
Since:
0.7
Version:
1.2
  • Field Details

  • Constructor Details

    • StoreProvider

      public StoreProvider()
      Creates a new provider.
  • Method Details

    • getShortName

      public String getShortName()
      Returns a generic name for this data store, used mostly in warnings or error messages.
      Specified by:
      getShortName in class DataStoreProvider
      Returns:
      a short name or abbreviation for the data format.
      See Also:
    • probeContent

      public ProbeResult probeContent(StorageConnector connector) throws DataStoreException
      Returns WKT version if the given storage appears to be supported by WKT Store. A supported status does not guarantee that reading or writing will succeed, only that there appears to be a reasonable chance of success based on a brief inspection of the file header.
      Specified by:
      probeContent in class DataStoreProvider
      Parameters:
      connector - information about the storage (URL, stream, JDBC connection, etc).
      Returns:
      a supported status with the WKT version if the given storage seems to be readable as a WKT string.
      Throws:
      DataStoreException - if an I/O error occurred.
    • open

      public DataStore open(StorageConnector connector) throws DataStoreException
      Returns a Store implementation associated with this provider.
      Specified by:
      open in class DataStoreProvider
      Parameters:
      connector - information about the storage (URL, stream, etc).
      Returns:
      a data store implementation associated with this provider for the given storage.
      Throws:
      DataStoreException - if an error occurred while creating the data store instance.
      See Also: