|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.dods.DODSSource
public class DODSSource
Provides support for generating a stream of VisAD data objects from a DODS dataset.
Instances are mutable.
Constructor Summary | |
---|---|
DODSSource()
Constructs from nothing. |
|
DODSSource(DataFactory factory)
Constructs from a factory for creating VisAD data objects. |
Method Summary | |
---|---|
void |
open(String spec)
Opens an existing DODS dataset. |
protected DataImpl |
readAttribute(String name)
Returns a VisAD data object corresponding to the next DODS global attribute in the currently open dataset. |
DataImpl |
readData()
Returns the next VisAD data object from the DODS dataset. |
protected DataImpl |
readVariable()
Returns a VisAD data object corresponding to the next DODS variable in the currently open dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DODSSource()
public DODSSource(DataFactory factory)
factory
- A factory for creating VisAD data objects.Method Detail |
---|
public void open(String spec) throws BadFormException, RemoteException, VisADException
open
in interface DataInputSource
spec
- The URL string specification of the DODS dataset
The path component should have a ".dods" suffix.
BadFormException
- The DODS dataset is corrupt.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.public DataImpl readData() throws VisADException, RemoteException
null
if there is no more objects.
readData
in interface DataInputStream
null
if
there are no more such objects.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.protected DataImpl readAttribute(String name) throws BadFormException, VisADException, RemoteException
null
if
there isn't another attribute.
name
- The name of the attribute.
null
if
no more attributes.
BadFormException
- The DODS datset is corrupt.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.protected DataImpl readVariable() throws BadFormException, VisADException, RemoteException
null
if there isn't
another variable.
null
if no more
variables.
BadFormException
- The DODS datset is corrupt.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |