Package org.geotools.api.data
Interface FileDataStoreFactorySpi
- All Superinterfaces:
DataAccessFactory
,DataStoreFactorySpi
,Factory
- All Known Implementing Classes:
CSVDataStoreFactory
,GeoJSONDataStoreFactory
,ShapefileDataStoreFactory
,ShapefileDirectoryFactory
DataAccessFactory for working with formats based on a single URL.
This interface provides a mechanism of discovery for DataAccessFactories which support singular files.
- Author:
- dzwiers
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataAccessFactory
DataAccessFactory.Param
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProcess
(URL url) Tests if the provided url can be handled by this factory.createDataStore
(URL url) A DataStore attached to the provided url, may be created if needed.String[]
The list of filename extentions handled by this factory.getTypeName
(URL url) The typeName represented by the provided url.Methods inherited from interface DataAccessFactory
canProcess, getDescription, getDisplayName, getParametersInfo, isAvailable
Methods inherited from interface DataStoreFactorySpi
createDataStore, createNewDataStore
Methods inherited from interface Factory
getImplementationHints
-
Method Details
-
getFileExtensions
String[] getFileExtensions()The list of filename extentions handled by this factory.- Returns:
- List of file extensions which can be read by this dataStore.
-
canProcess
Tests if the provided url can be handled by this factory.- Parameters:
url
- URL to a real file (may not be local)- Returns:
true
if this url can when this dataStore can resolve and read the data specified
-
createDataStore
A DataStore attached to the provided url, may be created if needed.Please note that additional configuration options may be available via the traditional createDataStore( Map ) method provided by the superclass.
- Parameters:
url
- The data location for the- Returns:
- Returns an implementation of FileDataStore created from the data source provided.
- Throws:
IOException
- See Also:
-
getTypeName
The typeName represented by the provided url.- Parameters:
url
- The location of the datum to parse into features- Returns:
- Returns the typename of the datum specified (on occasion this may involve starting the parse as well to get the FeatureType -- may not be instantanious).
- Throws:
IOException
-