Class Driver
Object
Driver
-
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the file extensions handled by the driver.Returns the short name of the driver.getMetadataItem(String name, String domain) Fetches a single metadata item.Returns the MIME type handled by the driver.getName()Returns the long name of the driver.booleanReturns whether the driver has raster capability.Returns a string representation of this driver for debugging purposes.
-
Method Details
-
getName
Returns the long name of the driver. For the GeoTIFF driver, this is"GeoTIFF".- Returns:
- the driver long name, or
null. - Throws:
DataStoreException- if an error occurred while invoking a GDAL function.
-
getIdentifier
Returns the short name of the driver. For the GeoTIFF driver, this is"GTiff". This is the name used by GDAL for identifying a driver on the command-line.- Returns:
- the driver short name, or
null. - Throws:
DataStoreException- if an error occurred while invoking a GDAL function.- See Also:
-
getMIMEType
Returns the MIME type handled by the driver.- Returns:
- the MIME type handled by the driver, or
nullif unspecified. - Throws:
DataStoreException- if an error occurred while invoking a GDAL function.
-
getFileSuffixes
Returns the file extensions handled by the driver.- Returns:
- the file extensions handled by the driver, or an empty array if none.
- Throws:
DataStoreException- if an error occurred while invoking a GDAL function.- See Also:
-
supportRasters
Returns whether the driver has raster capability.- Returns:
- whether the driver has raster capability.
- Throws:
DataStoreException- if an error occurred while invoking a GDAL function.
-
getMetadataItem
Fetches a single metadata item. The following table lists some metadata:Some metadata keys Key Description "DMD_MIMETYPE"MIME type handled by the driver. "DMD_EXTENSIONS"space separated list of file extensions handled by the driver. "DCAP_RASTER"Whether the driver has raster capability. - Parameters:
name- the key for the metadata item to fetch.domain- the domain to fetch for, ornullfor the default domain.- Returns:
- the metadata item value, or
nullif none. - Throws:
DataStoreException- if an error occurred while invoking a GDAL function.
-
toString
-