ucar.ma2
Interface StructureDataIterator


public interface StructureDataIterator

An iterator over StructureData.

Since:
Feb 23, 2008
Author:
caron

Method Summary
 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.
 

Method Detail

hasNext

boolean hasNext()
                throws java.io.IOException
See if theres more StructureData in the iteration

Returns:
true if more records are available
Throws:
java.io.IOException - on read error

next

StructureData next()
                   throws java.io.IOException
Get the next StructureData in the iteration.

Returns:
next StructureData record.
Throws:
java.io.IOException - on read error

setBufferSize

void setBufferSize(int bytes)
Hint to use this much memory in buffering the iteration. No guarentee that it will be used by the implementation.

Parameters:
bytes - amount of memory in bytes

reset

StructureDataIterator reset()
Start the iteration over again.

Returns:
a new or reset iterator.