|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.EmptyFeatureWriter
Represents an Empty, Typed, FeatureWriter.
Constructor Summary | |
EmptyFeatureWriter(FeatureType featureType)
An Empty FeatureWriter of the provided featureType . |
Method Summary | |
void |
close()
Cleans up after Empty FeatureWriter. |
FeatureType |
getFeatureType()
FeatureType this reader has been configured to create. |
boolean |
hasNext()
There is no next Feature. |
Feature |
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(FeatureType featureType)
featureType
.
featureType
- Method Detail |
public FeatureType getFeatureType()
FeatureWriter
getFeatureType
in interface FeatureWriter
FeatureWriter.getFeatureType()
public Feature next() throws java.util.NoSuchElementException
next
in interface FeatureWriter
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
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
java.io.IOException
FeatureWriter.remove()
public boolean hasNext()
hasNext
in interface FeatureWriter
false
FeatureWriter.hasNext()
public void close()
close
in interface FeatureWriter
FeatureWriter.close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |