Package org.geotools.coverage.io.impl
Class DefaultFileDriver
Object
DefaultDriver
DefaultFileDriver
- All Implemented Interfaces:
Driver
,FileDriver
,Factory
,OptionalFactory
- Direct Known Subclasses:
NetCDFDriver
Base class extending
DefaultDriver
leveraging on URLs.- Author:
- Simone Giannecchini, GeoSolutions
-
Nested Class Summary
Nested classes/interfaces inherited from interface Driver
Driver.DriverCapabilities
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultFileDriver
(String name, String description, String title, Hints implementationHints, List<String> fileExtensions, EnumSet<Driver.DriverCapabilities> driverCapabilities) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canConnect
(URL url, Map<String, Serializable> params) protected boolean
canConnect
(Map<String, Serializable> params) protected boolean
canCreate
(URL url, Map<String, Serializable> params) protected boolean
canCreate
(Map<String, Serializable> params) protected boolean
canDelete
(URL url, Map<String, Serializable> params) protected boolean
canDelete
(Map<String, Serializable> params) boolean
canProcess
(Driver.DriverCapabilities operation, URL url, Map<String, Serializable> params) protected CoverageAccess
connect
(URL url, Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccess
connect
(Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccess
create
(URL url, Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccess
create
(Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccess
delete
(URL url, Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccess
delete
(Map<String, Serializable> params, Hints hints, ProgressListener listener) The list of filename extensions handled by this driver.process
(Driver.DriverCapabilities operation, URL url, Map<String, Serializable> params, Hints hints, ProgressListener listener) 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
-
Field Details
-
URL
Parameter "url" used to indicate to a local file or remote resource being accessed as a coverage.
-
-
Constructor Details
-
DefaultFileDriver
-
-
Method Details
-
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
- Overrides:
canConnect
in classDefaultDriver
-
canCreate
- Overrides:
canCreate
in classDefaultDriver
-
canDelete
- 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
-
canCreate
-
canDelete
-
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
- Overrides:
defineConnectParameterInfo
in classDefaultDriver
-
defineCreateParameterInfo
- Overrides:
defineCreateParameterInfo
in classDefaultDriver
-
defineDeleteParameterInfo
- Overrides:
defineDeleteParameterInfo
in classDefaultDriver
-