org.geotools.data
Interface FileDataStoreFactorySpi

All Superinterfaces:
DataStoreFactorySpi, Factory
All Known Implementing Classes:
GMLDataStoreFactory, IndexedShapefileDataStoreFactory, ShapefileDataStoreFactory

public interface FileDataStoreFactorySpi
extends DataStoreFactorySpi

This interface includes some new functionality, and acts as a method of discovery for DataStoreFactories which support singular files.

Author:
dzwiers

Nested Class Summary
 
Nested classes inherited from class org.geotools.data.DataStoreFactorySpi
DataStoreFactorySpi.Param
 
Method Summary
 boolean canProcess(java.net.URL f)
          DOCUMENT ME!
 DataStore createDataStore(java.net.URL url)
          DOCUMENT ME!
 java.lang.String[] getFileExtensions()
          DOCUMENT ME!
 java.lang.String getTypeName(java.net.URL url)
          DOCUMENT ME!
 
Methods inherited from interface org.geotools.data.DataStoreFactorySpi
canProcess, createDataStore, createNewDataStore, getDescription, getDisplayName, getParametersInfo, isAvailable
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 

Method Detail

getFileExtensions

public java.lang.String[] getFileExtensions()
DOCUMENT ME!

Returns:
An ordered list of file extensions which can be read by this dataStore.

canProcess

public boolean canProcess(java.net.URL f)
DOCUMENT ME!

Parameters:
f - URL a url to a real file (may not be local)
Returns:
True when this dataStore can resolve and read the data specified by the URL.

createDataStore

public DataStore createDataStore(java.net.URL url)
                          throws java.io.IOException
DOCUMENT ME!

Parameters:
url - A URL to the data location for the single featureType of this DataStore
Returns:
Returns an AbstractFileDataStore created from the data source provided.
Throws:
java.io.IOException
See Also:
AbstractFileDataStore

getTypeName

public java.lang.String getTypeName(java.net.URL url)
                             throws java.io.IOException
DOCUMENT ME!

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:
java.io.IOException


Copyright © GeoTools. All Rights Reserved.