Package org.geotools.data
Class DefaultFIDReader
Object
DefaultFIDReader
- All Implemented Interfaces:
FIDReader
A Default FIDReader. Just auto-increments an index. May be sufficient for files, representing rows in a file. For
jdbc datasources a ResultSetFIDReader should be used.
- Author:
- Chris Holmes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBufferprotected static final Stringprotected int -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFIDReader(String typeName) DefaultFIDReader(SimpleFeatureType featureType) -
Method Summary
-
Field Details
-
CLOSE_MESG
- See Also:
-
index
protected int index -
buffer
-
-
Constructor Details
-
DefaultFIDReader
-
DefaultFIDReader
-
-
Method Details
-
close
public void close()Release any resources associated with this reader -
hasNext
Does another set of attributes exist in this reader?- Specified by:
hasNextin interfaceFIDReader- Returns:
trueif more attributes exist- Throws:
IOException- If closed
-
next
Read the attribute at the given index.- Specified by:
nextin interfaceFIDReader- Returns:
- Attribute at index
- Throws:
IOException- If closed
-