org.geotools.data
Class FileDataStoreFinder

java.lang.Object
  extended byorg.geotools.data.FileDataStoreFinder

public class FileDataStoreFinder
extends java.lang.Object

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.

Author:
dzwiers
See Also:
DataStoreFinder

Field Summary
protected static java.util.logging.Logger LOGGER
          The logger for the filter module.
 
Method Summary
static java.util.Iterator getAvailableDataStores()
          Returns an iterator of FileDataStoreFactorySpi to allow for the easy creation of a FileDataStore
static DataStore getDataStore(java.net.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final java.util.logging.Logger LOGGER
The logger for the filter module.

Method Detail

getDataStore

public static DataStore getDataStore(java.net.URL url)
                              throws java.io.IOException
Checks each available datasource implementation in turn and returns the first one which claims to support the resource identified by the params object.

Parameters:
url - A Map object which contains a defenition of the resource to connect to. for file based resources the property 'url' should be set within this Map.
Returns:
The first datasource which claims to process the required resource, returns null if none can be found.
Throws:
java.io.IOException - If a suitable loader can be found, but it can not be attached to the specified resource without errors.

getAvailableDataStores

public static java.util.Iterator getAvailableDataStores()
Returns an iterator of FileDataStoreFactorySpi to allow for the easy creation of a FileDataStore

Returns:
See Also:
FileDataStoreFactorySpi, FileDataStore


Copyright © GeoTools. All Rights Reserved.