org.geotools.data.shapefile.indexed
Class ShapeFIDReader
Object
ShapeFIDReader
- All Implemented Interfaces:
- FIDReader
public class ShapeFIDReader
- extends Object
- implements FIDReader
Reader that returns FeatureIds in a quick fashion.
- Author:
- Tommaso Nolli
- Module:
trunk/gt/modules
(gt-modules.jar
) (Maven report) (SVN head)
Method Summary |
void |
close()
Release any resources associated with this reader |
boolean |
hasNext()
This method always returns true, since it is built with a
ShapefileDataStore.Reader you have to call
ShapefileDataStore.Reader.hasNext() |
String |
next()
Read the feature id. |
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
buffer
protected StringBuffer buffer
ShapeFIDReader
public ShapeFIDReader(String typeName,
IndexedShapefileAttributeReader reader)
ShapeFIDReader
public ShapeFIDReader(SimpleFeatureType featureType,
IndexedShapefileAttributeReader reader)
close
public void close()
- Release any resources associated with this reader
- Specified by:
close
in interface FIDReader
hasNext
public boolean hasNext()
throws IOException
- This method always returns true, since it is built with a
ShapefileDataStore.Reader
you have to call
ShapefileDataStore.Reader.hasNext()
- Specified by:
hasNext
in interface FIDReader
- Returns:
- always return
true
- Throws:
IOException
- If closed
next
public String next()
throws IOException
- Read the feature id.
- Specified by:
next
in interface FIDReader
- Returns:
- the Feature Id
- Throws:
IOException
- If closed
Copyright © 1996-2009 Geotools. All Rights Reserved.