Package org.geotools.api.data
Interface FileDataStore
-
- All Superinterfaces:
DataAccess<SimpleFeatureType,SimpleFeature>
,DataStore
- All Known Implementing Classes:
CSVDataStore
,GeoJSONDataStore
,ShapefileDataStore
public interface FileDataStore extends DataStore
DataStore represents a single file of content.Allows developer to skip refering to the typeName when a file contains only a single set of content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureReader<SimpleFeatureType,SimpleFeature>
getFeatureReader()
SimpleFeatureSource
getFeatureSource()
FeatureWriter<SimpleFeatureType,SimpleFeature>
getFeatureWriter(Transaction transaction)
FeatureWriter<SimpleFeatureType,SimpleFeature>
getFeatureWriter(Filter filter, Transaction transaction)
FeatureWriter<SimpleFeatureType,SimpleFeature>
getFeatureWriterAppend(Transaction transaction)
SimpleFeatureType
getSchema()
FeatureType for the file being read.void
updateSchema(SimpleFeatureType featureType)
-
Methods inherited from interface DataAccess
createSchema, dispose, getInfo, getNames, getSchema, removeSchema, updateSchema
-
Methods inherited from interface DataStore
getFeatureReader, getFeatureSource, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getSchema, getTypeNames, removeSchema, updateSchema
-
-
-
-
Method Detail
-
getSchema
SimpleFeatureType getSchema() throws IOException
FeatureType for the file being read.This is the same as getSchema( getTypeName[0] )
- Returns:
- FeatureType of the file being read
- Throws:
IOException
- See Also:
DataStore.getSchema(java.lang.String)
-
updateSchema
void updateSchema(SimpleFeatureType featureType) throws IOException
- Throws:
IOException
- See Also:
DataStore.updateSchema(java.lang.String,SimpleFeatureType)
-
getFeatureSource
SimpleFeatureSource getFeatureSource() throws IOException
- Throws:
IOException
- See Also:
DataStore.getFeatureSource(java.lang.String)
-
getFeatureReader
FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader() throws IOException
- Throws:
IOException
- See Also:
DataStore#getFeatureReader(java.lang.String)
-
getFeatureWriter
FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Filter filter, Transaction transaction) throws IOException
- Throws:
IOException
- See Also:
DataStore#getFeatureWriter(Filter,Transaction)
-
getFeatureWriter
FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Transaction transaction) throws IOException
- Throws:
IOException
- See Also:
DataStore.getFeatureWriter(java.lang.String, Transaction)
-
getFeatureWriterAppend
FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriterAppend(Transaction transaction) throws IOException
- Throws:
IOException
- See Also:
DataStore.getFeatureWriterAppend(java.lang.String, Transaction)
-
-