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.NetcdfStore
Defined in the sis-netcdf module
Constructor and Description |
---|
NetcdfStoreProvider()
Creates a new provider.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
canOpen(StorageConnector storage)
Returns
TRUE if the given storage appears to be supported by NetcdfStore . |
DataStore |
open(StorageConnector storage)
Returns a
NetcdfStore implementation associated with this provider. |
public Boolean canOpen(StorageConnector storage) throws DataStoreException
TRUE
if the given storage appears to be supported by NetcdfStore
.
Returning TRUE
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.canOpen
in class DataStoreProvider
storage
- Information about the storage (URL, stream, NetcdfFile
instance, etc).Boolean.TRUE
if the given storage seems to be usable by the NetcdfStore
instances,
Boolean.FALSE
if NetcdfStore
will not be able to use the given storage,
or null
if this method does not have enough information.DataStoreException
- if an I/O error occurred.public DataStore open(StorageConnector storage) throws DataStoreException
NetcdfStore
implementation associated with this provider. This method invokes
StorageConnector.closeAllExcept(Object)
after data store creation, keeping open only
the needed resource.open
in class DataStoreProvider
storage
- Information about the storage (URL, stream, NetcdfFile
instance, etc).DataStoreException
- if an error occurred while creating the data store instance.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.