ArrayStructureBak.ArrayStructureIterator, SequenceIterator, StructureDataIteratorLimited, StructureDataIteratorMediatedpublic interface StructureDataIterator
try {
while (iter.hasNext())
process(iter.next());
} finally {
iter.finish();
}
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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 IOException
IOException - on read errorStructureData next() throws IOException
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();
}
Copyright © 2019. All rights reserved.