|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.netcdf.InputNetcdf
public class InputNetcdf
A Java bean for importing a netCDF file.
Constructor Summary | |
---|---|
InputNetcdf()
Construct. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
Add a property change listener. |
DataImpl |
getData()
Returns the VisAD data object property. |
String |
getPathname()
Returns the dataset pathname property. |
void |
removePropertyChangeListener(PropertyChangeListener p)
Remove a property change listener. |
void |
setPathname(String name)
Sets the dataset name property. |
void |
setQuantityDB(QuantityDB db)
Set the quantity database property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputNetcdf()
null
; the quantity database property will be StandardQuantityDB
.
Method Detail |
---|
public void setQuantityDB(QuantityDB db) throws BadFormException, IOException, VisADException
RealType
s. If no transformation is desired, then use QuantityDB.emptyDB
. A PropertyChangeEvent
for quantityDB
will be fired, if appropriate. If the pathname property is
non-null
, then the netCDF database will be read and a PropertyChangeEvent
for the data property will be fired, if appropriate.
db
- The new quantity database.
NullPointerException
- if the argument is null
.
BadFormException
- if the netCDF dataset doesn't have the
right form.
IOException
- if an error occurs while reading the netCDF
dataset.
VisADException
- if a VisAD failure occurs.public void setPathname(String name) throws IOException, VisADException, BadFormException
null
,
then the data property will be set to null
; otherwise,
the dataset will be read. PropertyChangeEvent
s for the
pathname and data properties will be fired when appropriate.
name
- The new name of the dataset or
null
.
IOException
VisADException
BadFormException
public String getPathname()
null
if the
property has no value.
public DataImpl getData()
null
if the
property has no value.
public void addPropertyChangeListener(PropertyChangeListener p)
public void removePropertyChangeListener(PropertyChangeListener p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |