|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.netcdf.in.VirtualDataIterator
public abstract class VirtualDataIterator
Supports iteration over the virtual VisAD data objects in a netCDF dataset.
Field Summary | |
---|---|
protected View |
view
The view of the netCDF dataset that's being iterated over. |
Constructor Summary | |
---|---|
VirtualDataIterator(View view)
Constructs from a view of a netCDF dataset. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final View view
Constructor Detail |
---|
public VirtualDataIterator(View view)
view
- A view of a netCDF dataset.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |