Class StoreProvider
The provider of
Store
instances. Given a StorageConnector
input,
this class tries to instantiate a GPX Store
.- Since:
- 0.8
- Version:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.storage.DataStoreProvider
DataStoreProvider.Prober<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The format name.(package private) static final Version
The "1.0" version.(package private) static final Version
The "1.1" version.The range of versions returned bygetSupportedVersions()
.Fields inherited from class org.apache.sis.internal.storage.xml.AbstractProvider
MIME_TYPE, mimeForNameSpaces, mimeForRootElements
Fields inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
CREATE_PARAM, ENCODING, LOCATION_PARAM
Fields inherited from class org.apache.sis.storage.DataStoreProvider
CREATE, LOCATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JAXBContext
Returns the JAXB context for the data store.Returns the range of versions supported by the GPX data store.open
(StorageConnector connector) Returns a GPXStore
implementation associated with this provider.Methods inherited from class org.apache.sis.internal.storage.xml.AbstractProvider
probeContent
Methods inherited from class org.apache.sis.internal.storage.DocumentedStoreProvider
getFormat, getFormat, getShortName
Methods inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
build, connector, descriptor, getOpenParameters, isWritable
Methods inherited from class org.apache.sis.storage.DataStoreProvider
getLogger, open, probeContent
-
Field Details
-
NAME
The format name.- See Also:
-
V1_0
The "1.0" version. -
V1_1
The "1.1" version. -
VERSIONS
The range of versions returned bygetSupportedVersions()
.
-
-
Constructor Details
-
StoreProvider
public StoreProvider()Creates a new GPX store provider.
-
-
Method Details
-
getSupportedVersions
Returns the range of versions supported by the GPX data store.- Overrides:
getSupportedVersions
in classDataStoreProvider
- Returns:
- the range of supported versions.
-
open
Returns a GPXStore
implementation associated with this provider.- Specified by:
open
in classDataStoreProvider
- 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:
-
getJAXBContext
Returns the JAXB context for the data store. This method is invoked at most once.- Overrides:
getJAXBContext
in classStaxDataStoreProvider
- Returns:
- the JAXB context.
- Throws:
JAXBException
- if an error occurred while creating the JAXB context.
-