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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.storage.DataStoreProvider
DataStoreProvider.Prober<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MarshallerPool
Pool of JAXB marshallers shared by all data stores created by this provider.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
ConstructorsModifierConstructorDescriptionprotected
StaxDataStoreProvider
(String name) Creates a new provider. -
Method Summary
Modifier and TypeMethodDescriptionprotected JAXBContext
Returns the JAXB context for the data store, ornull
if the data stores created by this provided do not use JAXB.(package private) final MarshallerPool
Returns the (un)marshaller pool, creating it when first needed.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, getSupportedVersions, open, open, probeContent
-
Field Details
-
jaxb
Pool of JAXB marshallers shared by all data stores created by this provider. This pool is created only when first needed; it will never be instantiated if the data stores do not use JAXB.
-
-
Constructor Details
-
StaxDataStoreProvider
Creates a new provider. Subclasses shall populate theAbstractProvider.mimeForNameSpaces
map with a mapping from their namespace to the MIME type to declare.- Parameters:
name
- the primary key to use for searching in theMD_Format
table, ornull
if none.
-
-
Method Details
-
getJAXBContext
Returns the JAXB context for the data store, ornull
if the data stores created by this provided do not use JAXB.The default implementation returns
null
.- Returns:
- the JAXB context, or
null
if none. - Throws:
JAXBException
- if an error occurred while creating the JAXB context.
-
getMarshallerPool
Returns the (un)marshaller pool, creating it when first needed. If the subclass does not define a JAXB context, then this method returnsnull
.- Throws:
JAXBException
-