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, updateSchema
public VPFFileStore(String vpfFilePath) throws IOException
IOException
public String getVpfFilePath()
public List<Name> getNames()
ContentDataStore
ContentDataStore.getTypeNames()
meaning the returned Names have
no namespace set.getNames
in interface DataAccess<SimpleFeatureType,SimpleFeature>
getNames
in class ContentDataStore
DataAccess.getNames()
public SimpleFeatureType getFeatureType(ContentEntry entry) throws IOException
IOException
protected List<Name> createTypeNames() throws IOException
ContentDataStore
Namespaces may be left null
for data stores which do not support namespace
qualified type names.
createTypeNames
in class ContentDataStore
Name
.IOException
- Any errors occuring connecting to data.protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
ContentDataStore
Subclasses should override this method to return a specific subclass of ContentFeatureSource
.
createFeatureSource
in class ContentDataStore
entry
- The entry.ContentFeatureSource
for the entry.IOException
public ContentFeatureSource getFeatureSource(String typeName) throws IOException
ContentDataStore
Subclasses should not implement this method. However overriding in order to perform a type
narrowing to a subclasses of ContentFeatureSource
is acceptable.
getFeatureSource
in interface DataStore
getFeatureSource
in class ContentDataStore
typeName
- 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
IOException
public VPFFile getFile(String pathName) throws IOException
IOException
public void reset()
Copyright © 1996–2021 Geotools. All rights reserved.