Package org.geotools.data.vpf.file
Class VPFFileStore
Object
ContentDataStore
VPFFileStore
- All Implemented Interfaces:
DataAccess<SimpleFeatureType,,SimpleFeature> DataStore
A data store for VPF files. Any file can be retrieved from here. If you want joins (for example features with their
geometries), you will have to look elsewhere. Hopefully some one will take advantage of this class to provide the
full functionality.
- Author:
- Jeff Yutzler
-
Field Summary
Fields inherited from class ContentDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentFeatureSourcecreateFeatureSource(ContentEntry entry) Instantiates new feature source for the entry.Creates a set of qualified names corresponding to the types that the datastore provides.getFeatureSource(String typeName) Returns the feature source matching the specified name.getFeatureType(ContentEntry entry) getNames()Returns the same list of names thanContentDataStore.getTypeNames()meaning the returned Names have no namespace set.getTypeSchema(String pathName) voidreset()Closes all of the opoen files and removes them from the collection of open files.Methods inherited from class ContentDataStore
createContentState, createSchema, dispose, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getInfo, getLockingManager, getLogger, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, removeSchema, removeSchema, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, setNamespaceURI, updateSchema, updateSchema
-
Constructor Details
-
VPFFileStore
Default constructor. Nothing special- Throws:
IOException
-
-
Method Details
-
getVpfFilePath
-
getNames
Description copied from class:ContentDataStoreReturns the same list of names thanContentDataStore.getTypeNames()meaning the returned Names have no namespace set.- Specified by:
getNamesin interfaceDataAccess<SimpleFeatureType,SimpleFeature> - Overrides:
getNamesin classContentDataStore- Returns:
- Names of the available contents.
- See Also:
-
getFeatureType
- Throws:
IOException
-
createTypeNames
Description copied from class:ContentDataStoreCreates a set of qualified names corresponding to the types that the datastore provides.Namespaces may be left
nullfor data stores which do not support namespace qualified type names.- Specified by:
createTypeNamesin classContentDataStore- Returns:
- A list of
Name. - Throws:
IOException- Any errors occuring connecting to data.
-
createFeatureSource
Description copied from class:ContentDataStoreInstantiates new feature source for the entry.Subclasses should override this method to return a specific subclass of
ContentFeatureSource.- Specified by:
createFeatureSourcein classContentDataStore- Parameters:
entry- The entry.- Returns:
- An new instance of
ContentFeatureSourcefor the entry. - Throws:
IOException
-
getFeatureSource
Description copied from class:ContentDataStoreReturns the feature source matching the specified name.Subclasses should not implement this method. However overriding in order to perform a type narrowing to a subclasses of
ContentFeatureSourceis acceptable.- Specified by:
getFeatureSourcein interfaceDataStore- Overrides:
getFeatureSourcein classContentDataStore- Parameters:
typeName- the feature type- Returns:
- a
SimpleFeatureSource(or possibly a subclass) providing operations for features of the specified type - Throws:
IOException- if data access errors occur- See Also:
-
getTypeSchema
- Throws:
IOException
-
getFile
- Throws:
IOException
-
reset
public void reset()Closes all of the opoen files and removes them from the collection of open files.
-