public abstract class VirtualDataIterator extends 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, IOException
true
<=> hasNext()
will return the next virtual
VisAD data object.VisADException
- Couldn't create necessary VisAD object.IOException
- I/O failure.public VirtualData next() throws BadFormException, NoSuchElementException, VisADException, IOException
BadFormException
- Non-conforming netCDF dataset.NoSuchElementException
- No more virtual VisAD data objects.IOException
- I/O failure.VisADException
protected abstract VirtualData getData() throws VisADException, IOException
null
if there is none.VisADException
- Couldn't create necessary VisAD object.IOException
public View getNetcdf()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.