Package org.geotools.data.wfs
Class WFSFeatureWriter
Object
DiffContentFeatureWriter
WFSFeatureWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,FeatureWriter<SimpleFeatureType,SimpleFeature>
-
Field Summary
Fields inherited from class DiffContentFeatureWriter
diff, reader -
Constructor Summary
ConstructorsConstructorDescriptionWFSFeatureWriter(WFSFeatureStore store, WFSLocalTransactionState localSate, FeatureReader<SimpleFeatureType, SimpleFeature> reader, boolean autoCommit) -
Method Summary
Methods inherited from class DiffContentFeatureWriter
close, getFeatureType
-
Constructor Details
-
WFSFeatureWriter
public WFSFeatureWriter(WFSFeatureStore store, WFSLocalTransactionState localSate, FeatureReader<SimpleFeatureType, SimpleFeature> reader, boolean autoCommit)
-
-
Method Details
-
write
Description copied from class:DiffContentFeatureWriterWrites out the current feature.- Specified by:
writein interfaceFeatureWriter<SimpleFeatureType,SimpleFeature> - Overrides:
writein classDiffContentFeatureWriter- Throws:
IOException- See Also:
-
remove
Description copied from interface:FeatureWriterRemoves current Feature, must be called before hasNext.FeatureWriters will need to allow all FeatureSources of the same typeName to issue a FeatureEvent event of type
FeatureEvent.FEATURES_REMOVEDwhen this method is called.If this FeatureWriter is opperating against a Transaction FEATURES_REMOVED events should only be sent to FeatureSources operating on the same Transaction. When Transaction commit() is called other FeatureSources will be informed of the modifications.
When the current Feature has been provided as new content, this method "cancels" the add opperation (and notification needed).
- Specified by:
removein interfaceFeatureWriter<SimpleFeatureType,SimpleFeature> - Overrides:
removein classDiffContentFeatureWriter- Throws:
IOException- See Also:
-
hasNext
Description copied from class:DiffContentFeatureWriterQuery for more content.- Specified by:
hasNextin interfaceFeatureWriter<SimpleFeatureType,SimpleFeature> - Overrides:
hasNextin classDiffContentFeatureWriter- Returns:
trueif an additionalFeatureis available,falseif not.- Throws:
IOException- if an I/O error occurs.- See Also:
-
next
Description copied from class:DiffContentFeatureWriterNext Feature from reader or new content.- Specified by:
nextin interfaceFeatureWriter<SimpleFeatureType,SimpleFeature> - Overrides:
nextin classDiffContentFeatureWriter- Returns:
- Feature from Query, or newly appended Feature
- Throws:
IOException- if the writer has been closed or an I/O error occurs reading the nextFeature.- See Also:
-