public class ArrayStructure.ArrayStructureIterator extends java.lang.Object implements StructureDataIterator
Constructor and Description |
---|
ArrayStructureIterator() |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Make sure that the iterator is complete, and recover resources.
|
ArrayStructure |
getArrayStructure() |
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.
|
public boolean hasNext() throws java.io.IOException
StructureDataIterator
hasNext
in interface StructureDataIterator
java.io.IOException
- on read errorpublic StructureData next() throws java.io.IOException
StructureDataIterator
next
in interface StructureDataIterator
java.io.IOException
- on read errorpublic void setBufferSize(int bytes)
StructureDataIterator
setBufferSize
in interface StructureDataIterator
bytes
- amount of memory in bytespublic StructureDataIterator reset()
StructureDataIterator
reset
in interface StructureDataIterator
public int getCurrentRecno()
getCurrentRecno
in interface StructureDataIterator
public void finish()
StructureDataIterator
try { while (iter.hasNext()) process(iter.next()); } finally { iter.finish(); }
finish
in interface StructureDataIterator
public ArrayStructure getArrayStructure()