public class VPFFileStore extends ContentDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE| Constructor and Description |
|---|
VPFFileStore(String vpfFilePath)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ContentFeatureSource |
createFeatureSource(ContentEntry entry)
Instantiates new feature source for the entry.
|
protected List<Name> |
createTypeNames()
Creates a set of qualified names corresponding to the types that the datastore provides.
|
ContentFeatureSource |
getFeatureSource(String typeName)
Returns the feature source matching the specified name.
|
SimpleFeatureType |
getFeatureType(ContentEntry entry) |
VPFFile |
getFile(String pathName) |
List<Name> |
getNames()
Returns the same list of names than
ContentDataStore.getTypeNames() meaning the returned Names have
no namespace set. |
SimpleFeatureType |
getTypeSchema(String pathName) |
String |
getVpfFilePath() |
void |
reset()
Closes all of the opoen files and removes them from the collection of open files.
|
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, updateSchemapublic VPFFileStore(String vpfFilePath) throws IOException
IOExceptionpublic String getVpfFilePath()
public List<Name> getNames()
ContentDataStoreContentDataStore.getTypeNames() meaning the returned Names have
no namespace set.getNames in interface DataAccess<SimpleFeatureType,SimpleFeature>getNames in class ContentDataStoreDataAccess.getNames()public SimpleFeatureType getFeatureType(ContentEntry entry) throws IOException
IOExceptionprotected List<Name> createTypeNames() throws IOException
ContentDataStoreNamespaces may be left null for data stores which do not support namespace
qualified type names.
createTypeNames in class ContentDataStoreName.IOException - Any errors occuring connecting to data.protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
ContentDataStoreSubclasses should override this method to return a specific subclass of ContentFeatureSource.
createFeatureSource in class ContentDataStoreentry - The entry.ContentFeatureSource for the entry.IOExceptionpublic ContentFeatureSource getFeatureSource(String typeName) throws IOException
ContentDataStoreSubclasses should not implement this method. However overriding in order to perform a type
narrowing to a subclasses of ContentFeatureSource is acceptable.
getFeatureSource in interface DataStoregetFeatureSource in class ContentDataStoretypeName - the feature typeSimpleFeatureSource (or possibly a subclass) providing operations for
features of the specified typeIOException - if data access errors occurDataStore.getFeatureSource(String)public SimpleFeatureType getTypeSchema(String pathName) throws IOException
IOExceptionpublic VPFFile getFile(String pathName) throws IOException
IOExceptionpublic void reset()
Copyright © 1996–2021 Geotools. All rights reserved.