类 SequenceIterator

  • 所有已实现的接口:
    StructureDataIterator

    public class SequenceIterator
    extends java.lang.Object
    implements StructureDataIterator
    Creates a StructureDataIterator by wrapping a section of a ArrayStructure.
    从以下版本开始:
    Nov 16, 2009
    作者:
    caron
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void finish()
      Make sure that the iterator is complete, and recover resources.
      int getCurrentRecno()  
      boolean hasNext()
      See if theres more StructureData in the iteration.
      StructureData next()
      Get the next StructureData in the iteration.
      StructureDataIterator reset()
      Start the iteration over again.
      void setBufferSize​(int bytes)
      Hint to use this much memory in buffering the iteration.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SequenceIterator

        public SequenceIterator​(int start,
                                int size,
                                ArrayStructureBak abb)
    • 方法详细资料

      • hasNext

        public boolean hasNext()
                        throws java.io.IOException
        从接口复制的说明: StructureDataIterator
        See if theres more StructureData in the iteration. You must always call this before calling next().
        指定者:
        hasNext 在接口中 StructureDataIterator
        返回:
        true if more records are available
        抛出:
        java.io.IOException - on read error
      • setBufferSize

        public void setBufferSize​(int bytes)
        从接口复制的说明: StructureDataIterator
        Hint to use this much memory in buffering the iteration. No guarentee that it will be used by the implementation.
        指定者:
        setBufferSize 在接口中 StructureDataIterator
        参数:
        bytes - amount of memory in bytes
      • finish

        public void finish()
        从接口复制的说明: StructureDataIterator
        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();
          }
           
        指定者:
        finish 在接口中 StructureDataIterator