visad.data.netcdf.in
Class VirtualDataIterator
- java.lang.Object
-
- visad.data.netcdf.in.VirtualDataIterator
-
public abstract class VirtualDataIterator extends java.lang.ObjectSupports iteration over the virtual VisAD data objects in a netCDF dataset.
-
-
Constructor Summary
Constructors Constructor and Description VirtualDataIterator(View view)Constructs from a view of a netCDF dataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ViewgetNetcdf()Gets the view of the netCDF dataset.booleanhasNext()Indicates if there's another virtual VisAD data object.VirtualDatanext()Gets the next virtual VisAD data object.
-
-
-
Constructor Detail
-
VirtualDataIterator
public VirtualDataIterator(View view)
Constructs from a view of a netCDF dataset.- Parameters:
view- A view of a netCDF dataset.
-
-
Method Detail
-
hasNext
public boolean hasNext() throws VisADException, java.io.IOExceptionIndicates if there's another virtual VisAD data object.- Returns:
true<=>hasNext()will return the next virtual VisAD data object.- Throws:
VisADException- Couldn't create necessary VisAD object.java.io.IOException- I/O failure.
-
next
public VirtualData next() throws BadFormException, java.util.NoSuchElementException, VisADException, java.io.IOException
Gets the next virtual VisAD data object. The next object will be either a VirtualScalar, a VirtualField, or a VirtualFlatField.- Returns:
- The next virtual VisAD data object.
- Throws:
BadFormException- Non-conforming netCDF dataset.java.util.NoSuchElementException- No more virtual VisAD data objects.java.io.IOException- I/O failure.VisADException
-
getNetcdf
public View getNetcdf()
Gets the view of the netCDF dataset.
-
-
DMelt 3.0 © DataMelt by jWork.ORG