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.NetcdfStoreDefined in the sis-netcdf module
| Constructor and Description |
|---|
NetcdfStoreProvider()
Creates a new provider.
|
| Modifier and Type | Method and Description |
|---|---|
DataStore |
open(StorageConnector storage)
Returns a
NetcdfStore implementation associated with this provider. |
ProbeResult |
probeContent(StorageConnector storage)
Returns
ProbeResult.SUPPORTED if the given storage appears to be supported by NetcdfStore. |
public ProbeResult probeContent(StorageConnector storage)
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 DataStoreProviderstorage - Information about the storage (URL, stream, NetcdfFile instance, etc).SUPPORTED if the given storage seems to be usable by the NetcdfStore instances.DataStoreException - if an I/O error occurred.public DataStore open(StorageConnector storage)
throws DataStoreException
NetcdfStore implementation associated with this provider.open in class DataStoreProviderstorage - Information about the storage (URL, stream, NetcdfFile instance, etc).DataStoreException - If an error occurred while creating the data store instance.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.