|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFileDataStoreFinder
public class FileDataStoreFinder
Most of this code was copied from DataStoreFinder. See the Documentation there for details.
This searches for DataStores which support a singular file parsed in a particular file format.
DataStoreFinder
Field Summary | |
---|---|
protected static Logger |
LOGGER
The logger for the filter module. |
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
Method Detail |
---|
public static FileDataStore getDataStore(File file) throws IOException
file
- the file
IOException
- 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 resource
IOException
- 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
public static Set<String> getAvailableFileExtentions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |