ucar.nc2.dt
Class DataIteratorAdapter

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

public class DataIteratorAdapter
extends Object
implements DataIterator

make an Iterator into a DataIterator


Constructor Summary
DataIteratorAdapter(Iterator iter)
           
 
Method Summary
 boolean hasNext()
          true if another "DataType" object is available
 Object next()
          Returns the next "DataType" object.
 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

DataIteratorAdapter

public DataIteratorAdapter(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 Iterator
Specified by:
hasNext in interface DataIterator

nextData

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

Specified by:
nextData in interface DataIterator
Returns:
the next "DataType" object
Throws:
IOException

next

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

Specified by:
next in interface Iterator
Specified by:
next in interface DataIterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.