|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The low-level interface for reading Features. Will use the underlying AttributeReader and the given FeatureType to create new Features.
Typical use is as follows:
FeatureReader reader;
...
Feature f = null;
while ( reader.hasNext() ) {
f = reader.next();
}
reader.close();
Questions for Ian:
I've modified this to be based on the Iterator pattern as discussed in email. The only question remaining is whether to include skip(int) or not. (SeanG)
| Method Summary | |
void |
close()
Release the underlying resources associated with this stream. |
FeatureType |
getFeatureType()
Return the FeatureType this reader has been configured to create. |
boolean |
hasNext()
Query whether this FeatureReader has another Feature. |
Feature |
next()
Reads the next Feature in the FeatureReader. |
| Method Detail |
public FeatureType getFeatureType()
public Feature next()
throws java.io.IOException,
IllegalAttributeException,
java.util.NoSuchElementException
java.io.IOException - If an error occurs reading the Feature.
IllegalAttributeException - If the attributes read do not comply
with the FeatureType.
java.util.NoSuchElementException - If there are no more Features in the
Reader.
public boolean hasNext()
throws java.io.IOException
java.io.IOException - If an error occurs determining if there are more
Features.
public void close()
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||