Class DefaultFIDReader

Object
DefaultFIDReader
All Implemented Interfaces:
FIDReader

public class DefaultFIDReader extends 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.
Author:
Chris Holmes
  • Field Details

  • Constructor Details

    • DefaultFIDReader

      public DefaultFIDReader(String typeName)
    • DefaultFIDReader

      public DefaultFIDReader(SimpleFeatureType featureType)
  • Method Details

    • close

      public void close()
      Release any resources associated with this reader
      Specified by:
      close in interface FIDReader
    • hasNext

      public boolean hasNext() throws IOException
      Does another set of attributes exist in this reader?
      Specified by:
      hasNext in interface FIDReader
      Returns:
      true if more attributes exist
      Throws:
      IOException - If closed
    • next

      public String next() throws IOException
      Read the attribute at the given index.
      Specified by:
      next in interface FIDReader
      Returns:
      Attribute at index
      Throws:
      IOException - If closed