public abstract class VirtualDataIterator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected View |
view
The view of the netCDF dataset that's being iterated over.
|
| Constructor and Description |
|---|
VirtualDataIterator(View view)
Constructs from a view of a netCDF dataset.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract VirtualData |
getData()
Gets a clone of the next virtual VisAD data object.
|
View |
getNetcdf()
Gets the view of the netCDF dataset.
|
boolean |
hasNext()
Indicates if there's another virtual VisAD data object.
|
VirtualData |
next()
Gets the next virtual VisAD data object.
|
protected final View view
public VirtualDataIterator(View view)
view - A view of a netCDF dataset.public boolean hasNext()
throws VisADException,
java.io.IOException
true <=> hasNext()
will return the next virtual
VisAD data object.VisADException - Couldn't create necessary VisAD object.java.io.IOException - I/O failure.public VirtualData next() throws BadFormException, java.util.NoSuchElementException, VisADException, java.io.IOException
BadFormException - Non-conforming netCDF dataset.java.util.NoSuchElementException - No more virtual VisAD data objects.java.io.IOException - I/O failure.VisADExceptionprotected abstract VirtualData getData() throws VisADException, java.io.IOException
null if there is none.VisADException - Couldn't create necessary VisAD object.java.io.IOExceptionpublic View getNetcdf()