org.geotools.data
Class DefaultFIDReader

java.lang.Object
  extended byorg.geotools.data.DefaultFIDReader
All Implemented Interfaces:
FIDReader

public class DefaultFIDReader
extends java.lang.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.

Version:
$Id: DefaultFIDReader.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Chris Holmes

Field Summary
protected  java.lang.StringBuffer buffer
           
protected static java.lang.String CLOSE_MESG
           
protected  int index
           
 
Constructor Summary
DefaultFIDReader(FeatureType featureType)
           
DefaultFIDReader(java.lang.String typeName)
           
 
Method Summary
 void close()
          Release any resources associated with this reader
 boolean hasNext()
          Does another set of attributes exist in this reader?
 java.lang.String next()
          Read the attribute at the given index.
 
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

index

protected int index

buffer

protected java.lang.StringBuffer buffer
Constructor Detail

DefaultFIDReader

public DefaultFIDReader(java.lang.String typeName)

DefaultFIDReader

public DefaultFIDReader(FeatureType featureType)
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
Does another set of attributes exist in this reader?

Specified by:
hasNext in interface FIDReader
Returns:
true if more attributes exist
Throws:
java.io.IOException - If closed

next

public java.lang.String next()
                      throws java.io.IOException
Read the attribute at the given index.

Specified by:
next in interface FIDReader
Returns:
Attribute at index
Throws:
java.io.IOException - If closed


Copyright © GeoTools. All Rights Reserved.