类 ArrayStructureBak.ArrayStructureIterator
- java.lang.Object
-
- org.meteoinfo.ndarray.ArrayStructureBak.ArrayStructureIterator
-
- 所有已实现的接口:
StructureDataIterator
- 封闭类:
- ArrayStructureBak
public class ArrayStructureBak.ArrayStructureIterator extends java.lang.Object implements StructureDataIterator
-
-
构造器概要
构造器 构造器 说明 ArrayStructureIterator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidfinish()Make sure that the iterator is complete, and recover resources.ArrayStructureBakgetArrayStructure()intgetCurrentRecno()booleanhasNext()See if theres more StructureData in the iteration.StructureDatanext()Get the next StructureData in the iteration.StructureDataIteratorreset()Start the iteration over again.voidsetBufferSize(int bytes)Hint to use this much memory in buffering the iteration.
-
-
-
方法详细资料
-
hasNext
public boolean hasNext() throws java.io.IOException从接口复制的说明:StructureDataIteratorSee 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
-
next
public StructureData next() throws java.io.IOException
从接口复制的说明:StructureDataIteratorGet the next StructureData in the iteration.- 指定者:
next在接口中StructureDataIterator- 返回:
- next StructureData record.
- 抛出:
java.io.IOException- on read error
-
setBufferSize
public void setBufferSize(int bytes)
从接口复制的说明:StructureDataIteratorHint 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
-
reset
public StructureDataIterator reset()
从接口复制的说明:StructureDataIteratorStart the iteration over again.- 指定者:
reset在接口中StructureDataIterator- 返回:
- a new or reset iterator.
-
getCurrentRecno
public int getCurrentRecno()
- 指定者:
getCurrentRecno在接口中StructureDataIterator
-
finish
public void finish()
从接口复制的说明:StructureDataIteratorMake 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
-
getArrayStructure
public ArrayStructureBak getArrayStructure()
-
-