org.geotools.data.shapefile.indexed
Class ShapeFIDReader

Object
  extended by ShapeFIDReader
All Implemented Interfaces:
FIDReader

public class ShapeFIDReader
extends Object
implements FIDReader

Reader that returns FeatureIds in a quick fashion.

Author:
Tommaso Nolli
Module:
modules/plugin/shapefile (gt-shapefile.jar)

Field Summary
protected  StringBuffer buffer
           
protected static String CLOSE_MESG
           
 
Constructor Summary
ShapeFIDReader(SimpleFeatureType featureType, IndexedShapefileAttributeReader reader)
           
ShapeFIDReader(String typeName, IndexedShapefileAttributeReader reader)
           
 
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
 

Field Detail

CLOSE_MESG

protected static final String CLOSE_MESG
See Also:
Constant Field Values

buffer

protected StringBuffer buffer
Constructor Detail

ShapeFIDReader

public ShapeFIDReader(String typeName,
                      IndexedShapefileAttributeReader reader)

ShapeFIDReader

public ShapeFIDReader(SimpleFeatureType featureType,
                      IndexedShapefileAttributeReader reader)
Method Detail

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.