public class NetCDFAccess extends DefaultFileCoverageAccess implements CoverageAccess, FileSetManager
CoverageAccess
implementation for NetCDF Data format.CoverageAccess.AccessType
source
accessParameters, allowedAccessTypes, connectionParameters, driver, names
Modifier and Type | Method and Description |
---|---|
CoverageSource |
access(Name name,
Map<String,Serializable> params,
CoverageAccess.AccessType accessType,
Hints hints,
ProgressListener listener)
Retrieve a
CoverageSource to access a Named Coverage. |
void |
addFile(String filePath)
Add a file to the file set manager
|
boolean |
delete(Name name,
Map<String,Serializable> params,
Hints hints)
Asks this
CoverageAccess to entirely remove a certain Coverage from the available
CoverageSource s. |
void |
dispose()
This will free any cached info object or header information.
|
protected void |
finalize() |
ServiceInfo |
getInfo(ProgressListener listener)
Description of the CoverageAccess we are connected to here.
|
List<String> |
list()
Return the list of all the files currently added to the manager
|
void |
purge()
Remove all the files from the manager (An implementation may also physically remove all the
files)
|
void |
removeFile(String filePath)
Remove a file from the manager (An implementation may also physically remove the file)
|
getFileSet
canCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupported
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupported
public boolean delete(Name name, Map<String,Serializable> params, Hints hints) throws IOException
CoverageAccess
CoverageAccess
to entirely remove a certain Coverage from the available
CoverageSource
s.
Many file based formats won't allow to perform such operation, but db based source should be quite happy with it.
delete
in interface CoverageAccess
delete
in class DefaultCoverageAccess
true
in case of success.IOException
public CoverageSource access(Name name, Map<String,Serializable> params, CoverageAccess.AccessType accessType, Hints hints, ProgressListener listener) throws IOException
CoverageAccess
CoverageSource
to access a Named Coverage.
access
in interface CoverageAccess
access
in class DefaultCoverageAccess
params
- Additional parameters as needed to indicate what part of the data set to accessaccessType
- Requested level of accesslistener
- used to report progress while obtianing accessIOException
public ServiceInfo getInfo(ProgressListener listener)
CoverageAccess
getInfo
in interface CoverageAccess
getInfo
in class DefaultCoverageAccess
public void dispose()
CoverageAccess
Often a CoverageAccess
will keep a file channel open, this will clean that sort of
thing up.
Once a CoverageAccess
has been disposed it can be seen as being in unspecified
state, hence calling a method on it may have unpredictable results.
dispose
in interface CoverageAccess
dispose
in class DefaultCoverageAccess
protected void finalize() throws Throwable
public void addFile(String filePath)
FileSetManager
addFile
in interface FileSetManager
public List<String> list()
FileSetManager
list
in interface FileSetManager
public void removeFile(String filePath)
FileSetManager
removeFile
in interface FileSetManager
public void purge()
FileSetManager
purge
in interface FileSetManager
Copyright © 1996–2019 Geotools. All rights reserved.