public class StructureDataIteratorIndexed extends java.lang.Object implements StructureDataIterator
| Constructor and Description |
|---|
StructureDataIteratorIndexed(Structure s,
java.util.List<java.lang.Integer> index) |
| 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.
|
public StructureDataIteratorIndexed(Structure s, java.util.List<java.lang.Integer> index) throws java.io.IOException
java.io.IOExceptionpublic StructureData next() throws java.io.IOException
StructureDataIteratornext in interface StructureDataIteratorjava.io.IOException - on read errorpublic boolean hasNext()
throws java.io.IOException
StructureDataIteratorhasNext in interface StructureDataIteratorjava.io.IOException - on read errorpublic StructureDataIterator reset()
StructureDataIteratorreset in interface StructureDataIteratorpublic void setBufferSize(int bytes)
StructureDataIteratorsetBufferSize in interface StructureDataIteratorbytes - amount of memory in bytespublic int getCurrentRecno()
getCurrentRecno in interface StructureDataIteratorpublic void finish()
StructureDataIterator
try {
while (iter.hasNext())
process(iter.next());
} finally {
iter.finish();
}
finish in interface StructureDataIterator