Class StoreProvider

java.lang.Object
org.apache.sis.storage.DataStoreProvider
org.apache.sis.internal.storage.folder.StoreProvider

public final class StoreProvider extends DataStoreProvider
The provider of Store instances. This provider is intentionally registered with lowest priority because it will open any directory, which may conflict with other providers opening only directory with some specific content.
Since:
0.8
Version:
1.1
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.sis.storage.DataStoreProvider

    DataStoreProvider.Prober<S>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.opengis.parameter.ParameterDescriptor<Charset>
    Description of the parameter for character encoding used by the data store.
    private static final org.opengis.parameter.ParameterDescriptor<String>
    Description of the parameter for name of format or DataStoreProvider to use for reading or writing the directory content.
    private static final org.opengis.parameter.ParameterDescriptor<Locale>
    Description of the parameter for formatting conventions of dates and numbers.
    (package private) static final String
    A short name or abbreviation for the data format.
    (package private) static final org.opengis.parameter.ParameterDescriptorGroup
    The group of parameter descriptors to be returned by getOpenParameters().
    private static final org.opengis.parameter.ParameterDescriptor<TimeZone>
    Description of the parameter for timezone of dates in the data store.

    Fields inherited from class org.apache.sis.storage.DataStoreProvider

    CREATE, LOCATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <T> org.opengis.parameter.ParameterDescriptor<T>
    annotate(ParameterBuilder builder, org.opengis.parameter.ParameterDescriptor<T> e, org.opengis.util.InternationalString remark)
    Creates a parameter descriptor equals to the given one except for the remarks which are set to the given value.
    org.opengis.parameter.ParameterDescriptorGroup
    Returns a description of all parameters accepted by this provider for opening a data store.
    Returns a short name or abbreviation for the data format.
    Returns a data store implementation associated with this provider.
    private DataStore
    open(StorageConnector connector, String format, EnumSet<StandardOpenOption> options)
    Shared implementation of public open(…) methods.
    open(org.opengis.parameter.ParameterValueGroup parameters)
    Returns a data store implementation associated with this provider for the given parameters.
    Returns ProbeResult.SUPPORTED if the given storage appears to be a folder.

    Methods inherited from class org.apache.sis.storage.DataStoreProvider

    getFormat, getLogger, getSupportedVersions, probeContent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      static final String NAME
      A short name or abbreviation for the data format.
      See Also:
    • LOCALE

      private static final org.opengis.parameter.ParameterDescriptor<Locale> LOCALE
      Description of the parameter for formatting conventions of dates and numbers.
    • TIMEZONE

      private static final org.opengis.parameter.ParameterDescriptor<TimeZone> TIMEZONE
      Description of the parameter for timezone of dates in the data store.
    • ENCODING

      private static final org.opengis.parameter.ParameterDescriptor<Charset> ENCODING
      Description of the parameter for character encoding used by the data store.
    • FORMAT

      private static final org.opengis.parameter.ParameterDescriptor<String> FORMAT
      Description of the parameter for name of format or DataStoreProvider to use for reading or writing the directory content.
    • PARAMETERS

      static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERS
      The group of parameter descriptors to be returned by getOpenParameters().
  • Constructor Details

    • StoreProvider

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