Package org.geotools.coverage.io.impl
Class DefaultFileDriver
- Object
-
- DefaultDriver
-
- DefaultFileDriver
-
- All Implemented Interfaces:
Driver
,FileDriver
,Factory
,OptionalFactory
- Direct Known Subclasses:
NetCDFDriver
public class DefaultFileDriver extends DefaultDriver implements FileDriver
Base class extendingDefaultDriver
leveraging on URLs.- Author:
- Simone Giannecchini, GeoSolutions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface Driver
Driver.DriverCapabilities
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultFileDriver(String name, String description, String title, Hints implementationHints, List<String> fileExtensions, EnumSet<Driver.DriverCapabilities> driverCapabilities)
-
Method Summary
-
Methods inherited from class DefaultDriver
access, canAccess, getConnectParameterInfo, getCreateParameterInfo, getDeleteParameterInfo, getDescription, getDriverCapabilities, getImplementationHints, getName, getParameterInfo, getTitle, isAvailable
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Driver
access, canAccess, getDescription, getDriverCapabilities, getName, getParameterInfo, getTitle, isAvailable
-
Methods inherited from interface Factory
getImplementationHints
-
-
-
-
Method Detail
-
getFileExtensions
public List<String> getFileExtensions()
Description copied from interface:FileDriver
The list of filename extensions handled by this driver.This List may be empty if the Driver is not file based.
- Specified by:
getFileExtensions
in interfaceFileDriver
- Returns:
- List of file extensions which can be read by this dataStore.
-
canConnect
protected boolean canConnect(Map<String,Serializable> params)
- Overrides:
canConnect
in classDefaultDriver
-
canCreate
protected boolean canCreate(Map<String,Serializable> params)
- Overrides:
canCreate
in classDefaultDriver
-
canDelete
protected boolean canDelete(Map<String,Serializable> params)
- Overrides:
canDelete
in classDefaultDriver
-
connect
protected CoverageAccess connect(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Overrides:
connect
in classDefaultDriver
- Throws:
IOException
-
create
protected CoverageAccess create(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Overrides:
create
in classDefaultDriver
- Throws:
IOException
-
delete
protected CoverageAccess delete(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Overrides:
delete
in classDefaultDriver
- Throws:
IOException
-
canProcess
public boolean canProcess(Driver.DriverCapabilities operation, URL url, Map<String,Serializable> params)
- Specified by:
canProcess
in interfaceFileDriver
-
process
public CoverageAccess process(Driver.DriverCapabilities operation, URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Specified by:
process
in interfaceFileDriver
- Throws:
IOException
-
canConnect
protected boolean canConnect(URL url, Map<String,Serializable> params)
-
canCreate
protected boolean canCreate(URL url, Map<String,Serializable> params)
-
canDelete
protected boolean canDelete(URL url, Map<String,Serializable> params)
-
connect
protected CoverageAccess connect(URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Throws:
IOException
-
create
protected CoverageAccess create(URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Throws:
IOException
-
delete
protected CoverageAccess delete(URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Throws:
IOException
-
defineConnectParameterInfo
protected Map<String,Parameter<?>> defineConnectParameterInfo()
- Overrides:
defineConnectParameterInfo
in classDefaultDriver
-
defineCreateParameterInfo
protected Map<String,Parameter<?>> defineCreateParameterInfo()
- Overrides:
defineCreateParameterInfo
in classDefaultDriver
-
defineDeleteParameterInfo
protected Map<String,Parameter<?>> defineDeleteParameterInfo()
- Overrides:
defineDeleteParameterInfo
in classDefaultDriver
-
-