public class DefaultFamily extends FunctionFormFamily
Data data = new DefaultFamily("dflt").open(string);
new DefaultFamily("dflt").save("file.nc", data, true);
new DefaultFamily("dflt").add("file.nc", data, true);
forms
Constructor and Description |
---|
DefaultFamily(String name)
Construct a family of the supported VisAD datatype Forms
|
DefaultFamily(String name,
boolean netcdfText)
Construct a family of the supported VisAD datatype Forms, with a
netCDF form that converts char to Text if netcdfText flag is set.
|
Modifier and Type | Method and Description |
---|---|
static void |
addFormToList(FormNode form)
Add a Form to the list of supported VisAD datatype Forms.
|
static void |
main(String[] args)
Test the DefaultFamily class
|
add, open, open, save
addFormNode, getForms
public DefaultFamily(String name)
public DefaultFamily(String name, boolean netcdfText)
public static void addFormToList(FormNode form) throws ArrayIndexOutOfBoundsException
GIFForm
.
If the added form discovers that it cannot handle a
file, it can simply throw an exception and DefaultFamily
will pass the file onto the next Form in the list, so any
superseded Form will still be able to open the file.ArrayIndexOutOfBoundsException
- If there is no more room in the list.public static void main(String[] args) throws BadFormException, IOException, RemoteException, VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.