public class NetcdfStoreProvider extends DataStoreProvider
NetcdfStore
instances. Given a StorageConnector
input,
this class tries to instantiate a NetcdfStore
using the embedded netCDF decoder.
If the embedded decoder can not decode the given input and the UCAR library is reachable
on the classpath, then this class tries to instantiate a NetcdfStore
backed by
the UCAR library.
NetcdfStoreProvider
instance can be safely used by many threads without synchronization on
the part of the caller. However the NetcdfStore
instances created by this factory are not thread-safe.NetcdfStore
Defined in the sis-netcdf
module
LOCATION
Constructor and Description |
---|
NetcdfStoreProvider()
Creates a new provider.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescriptorGroup |
getOpenParameters()
Returns a description of all parameters accepted by this provider for opening a netCDF file.
|
String |
getShortName()
Returns a generic name for this data store, used mostly in warnings or error messages.
|
DataStore |
open(StorageConnector connector)
Returns a
NetcdfStore implementation associated with this provider. |
ProbeResult |
probeContent(StorageConnector connector)
Returns
ProbeResult.SUPPORTED if the given storage appears to be supported by NetcdfStore . |
getFormat, getSupportedVersions, open
public String getShortName()
getShortName
in class DataStoreProvider
DataStoreProvider.getFormat()
public ParameterDescriptorGroup getOpenParameters()
getOpenParameters
in class DataStoreProvider
DataStoreProvider.open(ParameterValueGroup)
,
DataStore.getOpenParameters()
public ProbeResult probeContent(StorageConnector connector) throws DataStoreException
ProbeResult.SUPPORTED
if the given storage appears to be supported by NetcdfStore
.
Returning SUPPORTED
from this method does not guarantee that reading or writing will succeed,
only that there appears to be a reasonable chance of success based on a brief inspection of the
storage object or contents.probeContent
in class DataStoreProvider
connector
- information about the storage (URL, stream, NetcdfFile
instance, etc).SUPPORTED
if the given storage seems to be usable by NetcdfStore
instances.DataStoreException
- if an I/O error occurred.public DataStore open(StorageConnector connector) throws DataStoreException
NetcdfStore
implementation associated with this provider.open
in class DataStoreProvider
connector
- information about the storage (URL, stream, NetcdfFile
instance, etc).DataStoreException
- if an error occurred while creating the data store instance.DataStores.open(Object)
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.