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

Method Summary
 boolean hasNext()
          true if another "DataType" object is available
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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
Returns:
the next "DataType" object
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