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()
Driver
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).
public InternationalString getTitle()
Driver
Driver
.public Map<RenderingHints.Key,?> getImplementationHints()
Often these hints are configuration and factory settings used to intergrate the driver with application services.
getImplementationHints
in interface Factory
public InternationalString getDescription()
Driver
Driver
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 Driver
Driver
s.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
Driver
null
in case the delete succeds. TODO think about a neater
approachaccess
in interface Driver
IOException
public Map<String,Parameter<?>> getParameterInfo(Driver.DriverCapabilities operation)
getParameterInfo
in interface Driver
protected 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
IOException
protected CoverageAccess create(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOException
protected CoverageAccess delete(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOException
public EnumSet<Driver.DriverCapabilities> getDriverCapabilities()
getDriverCapabilities
in interface Driver
public boolean isAvailable()
Driver
Driver
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 Driver
s.
isAvailable
in interface Driver
isAvailable
in interface OptionalFactory
Copyright © 1996–2019 Geotools. All rights reserved.