public class NetcdfStore extends DataStore
NetcdfStoreProvider.open(StorageConnector)
.NetcdfStoreProvider
Defined in the sis-netcdf module
Constructor and Description |
---|
NetcdfStore(StorageConnector storage)
Creates a new NetCDF store from the given file, URL, stream or
NetcdfFile object. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this NetCDF store and releases any underlying resources.
|
Metadata |
getMetadata()
Returns information about the dataset as a whole.
|
String |
toString()
Returns a string representation of this NetCDF store for debugging purpose.
|
addWarningListener, getLocale, removeWarningListener, setLocale
public NetcdfStore(StorageConnector storage) throws DataStoreException
NetcdfFile
object.
This constructor invokes StorageConnector.closeAllExcept(Object)
, keeping open only the
needed resource.storage
- Information about the storage (URL, stream, NetcdfFile
instance, etc).DataStoreException
- If an error occurred while opening the NetCDF file.public Metadata getMetadata() throws DataStoreException
getMetadata
in class DataStore
DataStoreException
- If an error occurred while reading the data.public void close() throws DataStoreException
close
in interface AutoCloseable
close
in class DataStore
DataStoreException
- If an error occurred while closing the NetCDF file.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.