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 StringBuffer
protected static final String
protected 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:
hasNext
in interfaceFIDReader
- Returns:
true
if more attributes exist- Throws:
IOException
- If closed
-
next
Read the attribute at the given index.- Specified by:
next
in interfaceFIDReader
- Returns:
- Attribute at index
- Throws:
IOException
- If closed
-