类 StructureDataIteratorMediated

  • 所有已实现的接口:
    StructureDataIterator

    public class StructureDataIteratorMediated
    extends java.lang.Object
    implements StructureDataIterator
    Read a maximum number of StructureData objects from a StructureDataIterator.
    从以下版本开始:
    7/9/2014
    作者:
    caron
    • 方法详细资料

      • 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