org.geotools.data.shapefile.indexed
Class ShapeFIDReader

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

public class ShapeFIDReader
extends java.lang.Object
implements FIDReader

DOCUMENT ME!

Author:
Tommaso Nolli

Field Summary
protected  java.lang.StringBuffer buffer
           
protected static java.lang.String CLOSE_MESG
           
 
Constructor Summary
ShapeFIDReader(FeatureType featureType, IndexedShapefileDataStore.Reader reader)
           
ShapeFIDReader(java.lang.String typeName, IndexedShapefileDataStore.Reader 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,
                      IndexedShapefileDataStore.Reader reader)

ShapeFIDReader

public ShapeFIDReader(FeatureType featureType,
                      IndexedShapefileDataStore.Reader 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 © GeoTools. All Rights Reserved.