Package org.geotools.coverage.io.impl
Class DefaultDriver
Object
DefaultDriver
- All Implemented Interfaces:
Driver,Factory,OptionalFactory
- Direct Known Subclasses:
DefaultFileDriver
Base Implementation for the
Driver interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface Driver
Driver.DriverCapabilities -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultDriver(String name, String description, String title, EnumSet<Driver.DriverCapabilities> driverCapabilities, Hints implementationHints) -
Method Summary
Modifier and TypeMethodDescriptionaccess(Driver.DriverCapabilities operation, Map<String, Serializable> params, Hints hints, ProgressListener listener) Simone: Returnnullin case the delete succeds.booleancanAccess(Driver.DriverCapabilities operation, Map<String, Serializable> params) protected booleancanConnect(Map<String, Serializable> params) protected booleancanCreate(Map<String, Serializable> params) protected booleancanDelete(Map<String, Serializable> params) protected CoverageAccessconnect(Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccesscreate(Map<String, Serializable> params, Hints hints, ProgressListener listener) protected CoverageAccessdelete(Map<String, Serializable> params, Hints hints, ProgressListener listener) Describe the nature of thisDriverimplementation.Implementation hints provided during construction.getName()Unique name (non human readable) that can be used to refer to this implementation.getParameterInfo(Driver.DriverCapabilities operation) getTitle()Human readable title for thisDriver.booleanTest to see if thisDriveris available, if it has all the appropriate dependencies (jars or libraries).
-
Constructor Details
-
DefaultDriver
-
-
Method Details
-
getName
Description copied from interface:DriverUnique name (non human readable) that can be used to refer to this implementation.While the Title and Description will change depending on the users local this name will be consistent. Please note that a given file may be readable by several Drivers (the description of each implementation should be provided to the user so they can make an intellegent choice in the matter).
-
getTitle
Description copied from interface:DriverHuman readable title for thisDriver. -
getImplementationHints
Implementation hints provided during construction.Often these hints are configuration and factory settings used to intergrate the driver with application services.
- Specified by:
getImplementationHintsin interfaceFactory- Returns:
- The map of hints, or an {@linkplain java.util.Collections.emptyMap() empty map} if none.
-
getDescription
Description copied from interface:DriverDescribe the nature of thisDriverimplementation.A description of this
Drivertype; the description should indicate the format or service being made available in human readable terms.- Specified by:
getDescriptionin interfaceDriver- Returns:
- A human readable description that is suitable for inclusion in a list of available
Drivers.
-
canAccess
-
access
public CoverageAccess access(Driver.DriverCapabilities operation, Map<String, Serializable> params, Hints hints, ProgressListener listener) throws IOExceptionDescription copied from interface:DriverSimone: Returnnullin case the delete succeds. TODO think about a neater approach- Specified by:
accessin interfaceDriver- Throws:
IOException
-
getConnectParameterInfo
-
getDeleteParameterInfo
-
getCreateParameterInfo
-
getParameterInfo
- Specified by:
getParameterInfoin interfaceDriver
-
canConnect
-
canCreate
-
canDelete
-
connect
protected CoverageAccess connect(Map<String, Serializable> params, Hints hints, ProgressListener listener) throws IOException- Throws:
IOException
-
create
protected CoverageAccess create(Map<String, Serializable> params, Hints hints, ProgressListener listener) throws IOException- Throws:
IOException
-
defineConnectParameterInfo
-
defineCreateParameterInfo
-
defineDeleteParameterInfo
-
delete
protected CoverageAccess delete(Map<String, Serializable> params, Hints hints, ProgressListener listener) throws IOException- Throws:
IOException
-
getDriverCapabilities
- Specified by:
getDriverCapabilitiesin interfaceDriver
-
isAvailable
public boolean isAvailable()Description copied from interface:DriverTest to see if thisDriveris available, if it has all the appropriate dependencies (jars or libraries).One may ask how this is different than
#canConnect(Map), and basically available can be used by finder mechanisms to list availableDrivers.- Specified by:
isAvailablein interfaceDriver- Specified by:
isAvailablein interfaceOptionalFactory- Returns:
- true if and only if this factory has all the appropriate dependencies on the classpath to create DataStores.
-