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
  • Method Details

    • 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 implementation of FileDataStore created from the data source provided.
      Throws:
      IOException
      See Also:
    • 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