Class StaxDataStoreProvider
java.lang.Object
org.apache.sis.storage.DataStoreProvider
org.apache.sis.internal.storage.URIDataStore.Provider
org.apache.sis.internal.storage.DocumentedStoreProvider
org.apache.sis.internal.storage.xml.AbstractProvider
org.apache.sis.internal.storage.xml.stream.StaxDataStoreProvider
- Direct Known Subclasses:
StoreProvider
The provider of
StaxStreamReader instances.- Since:
- 0.8
- Version:
- 0.8
- Author:
- Johann Sorel (Geomatys), Martin Desruisseaux (Geomatys)
-
Nested Class Summary
Nested classes/interfaces inherited from class DataStoreProvider
DataStoreProvider.Prober<S> -
Field Summary
Fields inherited from class AbstractProvider
MIME_TYPE, mimeForNameSpaces, mimeForRootElementsFields inherited from class URIDataStore.Provider
CREATE_PARAM, ENCODING, LOCATION_PARAMFields inherited from class DataStoreProvider
CREATE, LOCATION -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStaxDataStoreProvider(String name) Creates a new provider. -
Method Summary
Modifier and TypeMethodDescriptionprotected JAXBContextReturns the JAXB context for the data store, ornullif the data stores created by this provided do not use JAXB.Methods inherited from class AbstractProvider
probeContentMethods inherited from class DocumentedStoreProvider
getFormat, getFormat, getShortNameMethods inherited from class URIDataStore.Provider
build, connector, descriptor, getOpenParameters, isWritableMethods inherited from class DataStoreProvider
getLogger, getSupportedVersions, open, open, probeContent
-
Constructor Details
-
StaxDataStoreProvider
Creates a new provider. Subclasses shall populate theAbstractProvider.mimeForNameSpacesmap with a mapping from their namespace to the MIME type to declare.- Parameters:
name- the primary key to use for searching in theMD_Formattable, ornullif none.
-
-
Method Details
-
getJAXBContext
Returns the JAXB context for the data store, ornullif the data stores created by this provided do not use JAXB.The default implementation returns
null.- Returns:
- the JAXB context, or
nullif none. - Throws:
JAXBException- if an error occurred while creating the JAXB context.
-