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 StringThe format name.(package private) static final VersionThe "1.0" version.(package private) static final VersionThe "1.1" version.The range of versions returned bygetSupportedVersions().Fields inherited from class org.apache.sis.internal.storage.xml.AbstractProvider
MIME_TYPE, mimeForNameSpaces, mimeForRootElementsFields inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
CREATE_PARAM, ENCODING, LOCATION_PARAMFields inherited from class org.apache.sis.storage.DataStoreProvider
CREATE, LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JAXBContextReturns the JAXB context for the data store.Returns the range of versions supported by the GPX data store.open(StorageConnector connector) Returns a GPXStoreimplementation associated with this provider.Methods inherited from class org.apache.sis.internal.storage.xml.AbstractProvider
probeContentMethods inherited from class org.apache.sis.internal.storage.DocumentedStoreProvider
getFormat, getFormat, getShortNameMethods inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
build, connector, descriptor, getOpenParameters, isWritableMethods 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:
getSupportedVersionsin classDataStoreProvider- Returns:
- the range of supported versions.
-
open
Returns a GPXStoreimplementation associated with this provider.- Specified by:
openin 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:
getJAXBContextin classStaxDataStoreProvider- Returns:
- the JAXB context.
- Throws:
JAXBException- if an error occurred while creating the JAXB context.
-