org.geotools.data.shapefile.indexed
Class ShapeFIDReader

java.lang.Object
  extended by org.geotools.data.shapefile.indexed.ShapeFIDReader
All Implemented Interfaces:
FIDReader

public class ShapeFIDReader
extends java.lang.Object
implements FIDReader

Reader that returns FeatureIds in a quick fashion.

Author:
Tommaso Nolli

Field Summary
protected  java.lang.StringBuffer buffer
           
protected static java.lang.String CLOSE_MESG
           
 
Constructor Summary
ShapeFIDReader(org.opengis.feature.simple.SimpleFeatureType featureType, IndexedShapefileAttributeReader reader)
           
ShapeFIDReader(java.lang.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()
 java.lang.String next()
          Read the feature id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSE_MESG

protected static final java.lang.String CLOSE_MESG
See Also:
Constant Field Values

buffer

protected java.lang.StringBuffer buffer
Constructor Detail

ShapeFIDReader

public ShapeFIDReader(java.lang.String typeName,
                      IndexedShapefileAttributeReader reader)

ShapeFIDReader

public ShapeFIDReader(org.opengis.feature.simple.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 java.io.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:
java.io.IOException - If closed

next

public java.lang.String next()
                      throws java.io.IOException
Read the feature id.

Specified by:
next in interface FIDReader
Returns:
the Feature Id
Throws:
java.io.IOException - If closed


Copyright © 1996-2010 Geotools. All Rights Reserved.