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 extendingDefaultDriverleveraging on URLs.- Author:
- Simone Giannecchini, GeoSolutions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface Driver
Driver.DriverCapabilities
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultFileDriver(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:FileDriverThe list of filename extensions handled by this driver.This List may be empty if the Driver is not file based.
- Specified by:
getFileExtensionsin interfaceFileDriver- Returns:
- List of file extensions which can be read by this dataStore.
-
canConnect
protected boolean canConnect(Map<String,Serializable> params)
- Overrides:
canConnectin classDefaultDriver
-
canCreate
protected boolean canCreate(Map<String,Serializable> params)
- Overrides:
canCreatein classDefaultDriver
-
canDelete
protected boolean canDelete(Map<String,Serializable> params)
- Overrides:
canDeletein classDefaultDriver
-
connect
protected CoverageAccess connect(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Overrides:
connectin classDefaultDriver- Throws:
IOException
-
create
protected CoverageAccess create(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Overrides:
createin classDefaultDriver- Throws:
IOException
-
delete
protected CoverageAccess delete(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Overrides:
deletein classDefaultDriver- Throws:
IOException
-
canProcess
public boolean canProcess(Driver.DriverCapabilities operation, URL url, Map<String,Serializable> params)
- Specified by:
canProcessin interfaceFileDriver
-
process
public CoverageAccess process(Driver.DriverCapabilities operation, URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
- Specified by:
processin 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:
defineConnectParameterInfoin classDefaultDriver
-
defineCreateParameterInfo
protected Map<String,Parameter<?>> defineCreateParameterInfo()
- Overrides:
defineCreateParameterInfoin classDefaultDriver
-
defineDeleteParameterInfo
protected Map<String,Parameter<?>> defineDeleteParameterInfo()
- Overrides:
defineDeleteParameterInfoin classDefaultDriver
-
-