ucar.nc2.dt
Class DataIteratorAdapter

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

public class DataIteratorAdapter
extends java.lang.Object
implements DataIterator

make an Iterator into a DataIterator


Constructor Summary
DataIteratorAdapter(java.util.Iterator iter)
           
 
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
 

Constructor Detail

DataIteratorAdapter

public DataIteratorAdapter(java.util.Iterator iter)
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