public class DODSSource extends Object implements DataInputSource
Instances are mutable.
| Constructor and Description |
|---|
DODSSource()
Constructs from nothing.
|
DODSSource(DataFactory factory)
Constructs from a factory for creating VisAD data objects.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DODSSource()
public DODSSource(DataFactory factory)
factory - A factory for creating VisAD data objects.public void open(String spec) throws BadFormException, RemoteException, VisADException
open in interface DataInputSourcespec - 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 DataInputStreamnull 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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.