public class DefaultFileDriver extends DefaultDriver implements FileDriver
DefaultDriver
leveraging on URLs.Driver.DriverCapabilities
Modifier and Type | Field and Description |
---|---|
static Parameter<URL> |
URL
Parameter "url" used to indicate to a local file or remote resource being accessed as a
coverage.
|
Modifier | Constructor and Description |
---|---|
protected |
DefaultFileDriver(String name,
String description,
String title,
Hints implementationHints,
List<String> fileExtensions,
EnumSet<Driver.DriverCapabilities> driverCapabilities) |
access, canAccess, getConnectParameterInfo, getCreateParameterInfo, getDeleteParameterInfo, getDescription, getDriverCapabilities, getImplementationHints, getName, getParameterInfo, getTitle, isAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
access, canAccess, getDescription, getDriverCapabilities, getName, getParameterInfo, getTitle, isAvailable
getImplementationHints
public List<String> getFileExtensions()
FileDriver
This List may be empty if the Driver is not file based.
getFileExtensions
in interface FileDriver
protected boolean canConnect(Map<String,Serializable> params)
canConnect
in class DefaultDriver
protected boolean canCreate(Map<String,Serializable> params)
canCreate
in class DefaultDriver
protected boolean canDelete(Map<String,Serializable> params)
canDelete
in class DefaultDriver
protected CoverageAccess connect(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
connect
in class DefaultDriver
IOException
protected CoverageAccess create(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
create
in class DefaultDriver
IOException
protected CoverageAccess delete(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
delete
in class DefaultDriver
IOException
public boolean canProcess(Driver.DriverCapabilities operation, URL url, Map<String,Serializable> params)
canProcess
in interface FileDriver
public CoverageAccess process(Driver.DriverCapabilities operation, URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
process
in interface FileDriver
IOException
protected boolean canConnect(URL url, Map<String,Serializable> params)
protected boolean canCreate(URL url, Map<String,Serializable> params)
protected boolean canDelete(URL url, Map<String,Serializable> params)
protected CoverageAccess connect(URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOException
protected CoverageAccess create(URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOException
protected CoverageAccess delete(URL url, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOException
protected Map<String,Parameter<?>> defineConnectParameterInfo()
defineConnectParameterInfo
in class DefaultDriver
protected Map<String,Parameter<?>> defineCreateParameterInfo()
defineCreateParameterInfo
in class DefaultDriver
protected Map<String,Parameter<?>> defineDeleteParameterInfo()
defineDeleteParameterInfo
in class DefaultDriver
Copyright © 1996–2019 Geotools. All rights reserved.