Package org.geotools.api.data
Interface FileDataStoreFactorySpi
-
- All Superinterfaces:
DataAccessFactory
,DataStoreFactorySpi
,Factory
- All Known Implementing Classes:
CSVDataStoreFactory
,GeoJSONDataStoreFactory
,ShapefileDataStoreFactory
,ShapefileDirectoryFactory
public interface FileDataStoreFactorySpi extends DataStoreFactorySpi
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canProcess(URL url)
Tests if the provided url can be handled by this factory.FileDataStore
createDataStore(URL url)
A DataStore attached to the provided url, may be created if needed.String[]
getFileExtensions()
The list of filename extentions handled by this factory.String
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 Detail
-
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
boolean canProcess(URL url)
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
FileDataStore createDataStore(URL url) throws IOException
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 AbstractFileDataStore created from the data source provided.
- Throws:
IOException
- See Also:
AbstractFileDataStore
-
getTypeName
String getTypeName(URL url) throws IOException
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
-
-