|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.EmptyFeatureWriter
public class EmptyFeatureWriter
Represents an Empty, Typed, FeatureWriter.
Constructor Summary | |
---|---|
EmptyFeatureWriter(org.opengis.feature.simple.SimpleFeatureType featureType)
An Empty FeatureWriter of the provided featureType . |
Method Summary | |
---|---|
void |
close()
Cleans up after Empty FeatureWriter. |
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
FeatureType this reader has been configured to create. |
boolean |
hasNext()
There is no next Feature. |
org.opengis.feature.simple.SimpleFeature |
next()
Throws NoSuchElementException as this is an Empty FeatureWriter. |
void |
remove()
Removes current Feature, must be called before hasNext. |
void |
write()
Wrties the current Feature, must be called before hasNext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyFeatureWriter(org.opengis.feature.simple.SimpleFeatureType featureType)
featureType
.
featureType
- Method Detail |
---|
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
FeatureWriter
getFeatureType
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
FeatureWriter.getFeatureType()
public org.opengis.feature.simple.SimpleFeature next() throws java.util.NoSuchElementException
next
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.util.NoSuchElementException
FeatureWriter.next()
public void remove() throws java.io.IOException
FeatureWriter
FeatureWriters will need to allow all FeatureSources of the same
typeName to issue a FeatureEvent event of type
FeatureEvent.FEATURES_REMOVED
when 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).
remove
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- DOCUMENT ME!FeatureWriter.remove()
public void write() throws java.io.IOException
FeatureWriter
FeautreWriters will need to allow FeatureSources of the same typeName to issue a FeatureEvent:
false
.
true
and the resulting Feature has indeed been
modified.
If this FeatureWriter is opperating against a Transaction the FEATURES_MODIFIED or FEATURES_ADDED events should only be sent to FeatureSources opperating on the same Transaction. When Transaction commit() is called other FeatureSources will be informed of the modifications.
If you have not called write() when you call hasNext() or next(), no modification will occur().
write
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
FeatureWriter.remove()
public boolean hasNext()
hasNext
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
false
FeatureWriter.hasNext()
public void close()
close
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
FeatureWriter.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |