ucar.ma2
Class ArrayStructure.ArrayStructureIterator

java.lang.Object
  extended by ucar.ma2.ArrayStructure.ArrayStructureIterator
All Implemented Interfaces:
StructureDataIterator
Enclosing class:
ArrayStructure

public class ArrayStructure.ArrayStructureIterator
extends java.lang.Object
implements StructureDataIterator


Constructor Summary
ArrayStructure.ArrayStructureIterator()
           
 
Method Summary
 ArrayStructure getArrayStructure()
           
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayStructure.ArrayStructureIterator

public ArrayStructure.ArrayStructureIterator()
Method Detail

hasNext

public boolean hasNext()
                throws java.io.IOException
Description copied from interface: StructureDataIterator
See if theres more StructureData in the iteration

Specified by:
hasNext in interface StructureDataIterator
Returns:
true if more records are available
Throws:
java.io.IOException - on read error

next

public StructureData next()
                   throws java.io.IOException
Description copied from interface: StructureDataIterator
Get the next StructureData in the iteration.

Specified by:
next in interface StructureDataIterator
Returns:
next StructureData record.
Throws:
java.io.IOException - on read error

setBufferSize

public void setBufferSize(int bytes)
Description copied from interface: StructureDataIterator
Hint to use this much memory in buffering the iteration. No guarentee that it will be used by the implementation.

Specified by:
setBufferSize in interface StructureDataIterator
Parameters:
bytes - amount of memory in bytes

reset

public StructureDataIterator reset()
Description copied from interface: StructureDataIterator
Start the iteration over again.

Specified by:
reset in interface StructureDataIterator
Returns:
a new or reset iterator.

getCurrentRecno

public int getCurrentRecno()
Specified by:
getCurrentRecno in interface StructureDataIterator

getArrayStructure

public ArrayStructure getArrayStructure()