public class FileDataStoreFinder extends Object
This searches for DataStores which support a singular file parsed in a particular file format.
DataStoreFinder
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER
The logger for the filter module.
|
Modifier and Type | Method and Description |
---|---|
static Iterator<FileDataStoreFactorySpi> |
getAvailableDataStores()
Returns an iterator of FileDataStoreFactorySpi to allow for the easy creation of a
FileDataStore
|
static Set<String> |
getAvailableFileExtentions()
Go through each file DataStore and check what file extentions are supported.
|
static FileDataStore |
getDataStore(File file)
Checks each available datasource implementation in turn and returns the first one which
claims to support the given file..
|
static FileDataStore |
getDataStore(URL url)
Checks each available datasource implementation in turn and returns the first one which
claims to support the resource identified by the params object.
|
static FileDataStoreFactorySpi |
getDataStoreFactory(String extension)
Used to look up a FileDataStoreFactorySpi by extension.
|
protected static final Logger LOGGER
public static FileDataStore getDataStore(File file) throws IOException
file
- the fileIOException
- If a suitable loader can be found, but it can not be attached to the
specified resource without errors.public static FileDataStore getDataStore(URL url) throws IOException
url
- URL for the input resourceIOException
- If a suitable loader can be found, but it can not be attached to the
specified resource without errors.public static FileDataStoreFactorySpi getDataStoreFactory(String extension)
extension
- Extension such as "shp"public static Iterator<FileDataStoreFactorySpi> getAvailableDataStores()
FileDataStoreFactorySpi
,
FileDataStore
Copyright © 1996–2019 Geotools. All rights reserved.