org.geotools.data
Class DefaultFIDReader
Object
DefaultFIDReader
- All Implemented Interfaces:
- FIDReader
public class DefaultFIDReader
- extends Object
- implements 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
- Module:
Method Summary |
void |
close()
Release any resources associated with this reader |
boolean |
hasNext()
Does another set of attributes exist in this reader? |
String |
next()
Read the attribute at the given index. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLOSE_MESG
protected static final String CLOSE_MESG
- See Also:
- Constant Field Values
index
protected int index
buffer
protected StringBuffer buffer
DefaultFIDReader
public DefaultFIDReader(String typeName)
DefaultFIDReader
public DefaultFIDReader(SimpleFeatureType featureType)
close
public void close()
- Release any resources associated with this reader
- Specified by:
close
in interface FIDReader
hasNext
public boolean hasNext()
throws IOException
- Does another set of attributes exist in this reader?
- Specified by:
hasNext
in interface FIDReader
- Returns:
true
if more attributes exist
- Throws:
IOException
- If closed
next
public String next()
throws IOException
- Read the attribute at the given index.
- Specified by:
next
in interface FIDReader
- Returns:
- Attribute at index
- Throws:
IOException
- If closed
Copyright © 1996-2009 Geotools. All Rights Reserved.