接口 StructureDataIterator

    • 方法详细资料

      • hasNext

        boolean hasNext()
                 throws java.io.IOException
        See if theres more StructureData in the iteration. You must always call this before calling next().
        返回:
        true if more records are available
        抛出:
        java.io.IOException - on read error
      • next

        StructureData next()
                    throws java.io.IOException
        Get the next StructureData in the iteration.
        返回:
        next StructureData record.
        抛出:
        java.io.IOException - on read error
      • setBufferSize

        void setBufferSize​(int bytes)
        Hint to use this much memory in buffering the iteration. No guarentee that it will be used by the implementation.
        参数:
        bytes - amount of memory in bytes
      • getCurrentRecno

        int getCurrentRecno()
      • finish

        void finish()
        Make sure that the iterator is complete, and recover resources. Best to put in a try/finally block like:
         try {
           while (iter.hasNext())
            process(iter.next());
          } finally {
            iter.finish();
          }