public interface StructureDataIterator
try { while (iter.hasNext()) process(iter.next()); } finally { iter.finish(); }
Modifier and Type | Method and Description |
---|---|
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.
|
boolean hasNext() throws java.io.IOException
java.io.IOException
- on read errorStructureData next() throws java.io.IOException
java.io.IOException
- on read errorvoid setBufferSize(int bytes)
bytes
- amount of memory in bytesStructureDataIterator reset()
int getCurrentRecno()
void finish()
try { while (iter.hasNext()) process(iter.next()); } finally { iter.finish(); }