ucar.nc2.dt
Class DatatypeIterator

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

public abstract class DatatypeIterator
extends 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  Object makeDatatypeWithData(int recnum, StructureData sdata)
           
 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

DatatypeIterator

protected DatatypeIterator(Structure struct,
                           int bufferSize)
Method Detail

makeDatatypeWithData

protected abstract Object makeDatatypeWithData(int recnum,
                                               StructureData sdata)
                                        throws IOException
Throws:
IOException

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.