ucar.nc2.dt
Class DatatypeIterator

java.lang.Object
  extended by ucar.nc2.dt.DatatypeIterator
All Implemented Interfaces:
java.util.Iterator, DataIterator

public abstract class DatatypeIterator
extends java.lang.Object
implements DataIterator

An abstract implementation for iterating over datatypes, such as PointObsDatatype, etc.

Author:
caron

Constructor Summary
protected DatatypeIterator(Structure struct, int bufferSize)
           
 
Method Summary
 boolean hasNext()
          true if another "DataType" object is available
protected abstract  java.lang.Object makeDatatypeWithData(int recnum, StructureData sdata)
           
 java.lang.Object next()
          Returns the next "DataType" object.
 java.lang.Object nextData()
          Returns the next "DataType" object
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatatypeIterator

protected DatatypeIterator(Structure struct,
                           int bufferSize)
Method Detail

makeDatatypeWithData

protected abstract java.lang.Object makeDatatypeWithData(int recnum,
                                                         StructureData sdata)
                                                  throws java.io.IOException
Throws:
java.io.IOException

hasNext

public boolean hasNext()
Description copied from interface: DataIterator
true if another "DataType" object is available

Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface DataIterator

nextData

public java.lang.Object nextData()
                          throws java.io.IOException
Description copied from interface: DataIterator
Returns the next "DataType" object

Specified by:
nextData in interface DataIterator
Throws:
java.io.IOException

next

public java.lang.Object next()
Description copied from interface: DataIterator
Returns the next "DataType" object.

Specified by:
next in interface java.util.Iterator
Specified by:
next in interface DataIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator