Class 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 Summary

      Fields 
      Modifier and Type Field Description
      protected StringBuffer buffer  
      protected static String CLOSE_MESG  
      protected int index  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Release any resources associated with this reader
      boolean hasNext()
      Does another set of attributes exist in this reader?
      String next()
      Read the attribute at the given index.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • index

        protected int index
      • buffer

        protected StringBuffer buffer
    • Constructor Detail

      • DefaultFIDReader

        public DefaultFIDReader​(String typeName)
    • 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
        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