Package dap4.dap4lib.cdm.nc2
Class D4StructureDataIterator
- java.lang.Object
-
- dap4.dap4lib.cdm.nc2.D4StructureDataIterator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,StructureDataIterator
public class D4StructureDataIterator extends Object implements StructureDataIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected StructureData[]
list
protected int
position
-
Constructor Summary
Constructors Constructor Description D4StructureDataIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.D4StructureDataIterator
setList(StructureData[] list)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.ma2.StructureDataIterator
close, finish, setBufferSize
-
-
-
-
Field Detail
-
list
protected StructureData[] list
-
position
protected int position
-
-
Method Detail
-
setList
public D4StructureDataIterator setList(StructureData[] list)
-
hasNext
public boolean hasNext() throws IOException
Description copied from interface:StructureDataIterator
See if theres more StructureData in the iteration. You must always call this before calling next().- Specified by:
hasNext
in interfaceStructureDataIterator
- Returns:
- true if more records are available
- Throws:
IOException
- on read error
-
next
public StructureData next() throws IOException
Description copied from interface:StructureDataIterator
Get the next StructureData in the iteration.- Specified by:
next
in interfaceStructureDataIterator
- Returns:
- next StructureData record.
- Throws:
IOException
- on read error
-
reset
public StructureDataIterator reset()
Description copied from interface:StructureDataIterator
Start the iteration over again.- Specified by:
reset
in interfaceStructureDataIterator
- Returns:
- a new or reset iterator.
-
getCurrentRecno
public int getCurrentRecno()
- Specified by:
getCurrentRecno
in interfaceStructureDataIterator
-
-