public class StructureDataIteratorMediated extends Object implements StructureDataIterator
Constructor and Description |
---|
StructureDataIteratorMediated(StructureDataIterator org,
StructureDataMediator mod) |
Modifier and Type | Method and Description |
---|---|
void |
close()
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish
public StructureDataIteratorMediated(StructureDataIterator org, StructureDataMediator mod)
public StructureData next() throws IOException
StructureDataIterator
next
in interface StructureDataIterator
IOException
- on read errorpublic boolean hasNext() throws IOException
StructureDataIterator
hasNext
in interface StructureDataIterator
IOException
- on read errorpublic StructureDataIterator reset()
StructureDataIterator
reset
in interface StructureDataIterator
public void setBufferSize(int bytes)
StructureDataIterator
setBufferSize
in interface StructureDataIterator
bytes
- amount of memory in bytespublic int getCurrentRecno()
getCurrentRecno
in interface StructureDataIterator
public void close()
StructureDataIterator
try (StructureDataIterator iter = obj.getStructureDataIterator()) { while (iter.hasNext()) process(iter.next()); }
close
in interface Closeable
close
in interface AutoCloseable
close
in interface StructureDataIterator