public class DefaultDriver extends Object implements Driver
Driver interface.Driver.DriverCapabilities| Modifier | Constructor and Description |
|---|---|
protected |
DefaultDriver(String name,
String description,
String title,
EnumSet<Driver.DriverCapabilities> driverCapabilities,
Hints implementationHints) |
public String getName()
DriverWhile 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).
public InternationalString getTitle()
DriverDriver.public Map<RenderingHints.Key,?> getImplementationHints()
Often these hints are configuration and factory settings used to intergrate the driver with application services.
getImplementationHints in interface Factorypublic InternationalString getDescription()
DriverDriver implementation.
A description of this Driver type; the description should indicate the format or
service being made available in human readable terms.
getDescription in interface DriverDrivers.public boolean canAccess(Driver.DriverCapabilities operation, Map<String,Serializable> params)
public CoverageAccess access(Driver.DriverCapabilities operation, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
Drivernull in case the delete succeds. TODO think about a neater
approachaccess in interface DriverIOExceptionpublic Map<String,Parameter<?>> getParameterInfo(Driver.DriverCapabilities operation)
getParameterInfo in interface Driverprotected boolean canConnect(Map<String,Serializable> params)
protected boolean canCreate(Map<String,Serializable> params)
protected boolean canDelete(Map<String,Serializable> params)
protected CoverageAccess connect(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOExceptionprotected CoverageAccess create(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOExceptionprotected CoverageAccess delete(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOExceptionpublic EnumSet<Driver.DriverCapabilities> getDriverCapabilities()
getDriverCapabilities in interface Driverpublic boolean isAvailable()
DriverDriver is 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 available Drivers.
isAvailable in interface DriverisAvailable in interface OptionalFactoryCopyright © 1996–2019 Geotools. All rights reserved.