ucar.nc2.dt
Interface DataIterator

All Superinterfaces:
Iterator
All Known Implementing Classes:
DataIteratorAdapter, DatatypeIterator

public interface DataIterator
extends Iterator

Just like java.util.Iterator, but may throw IOException on nextData() call.

Author:
caron

Method Summary
 boolean hasNext()
          true if another "DataType" object is available
 Object next()
          Deprecated. use nextData()
 Object nextData()
          Returns the next "DataType" object
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

hasNext

boolean hasNext()
true if another "DataType" object is available

Specified by:
hasNext in interface Iterator

nextData

Object nextData()
                throws IOException
Returns the next "DataType" object

Returns:
the next "DataType" object
Throws:
IOException

next

Object next()
Deprecated. use nextData()

Returns the next "DataType" object.

Specified by:
next in interface Iterator
Throws:
RuntimeException - (unchecked) instead of IOException.


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