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(java.lang.String name)
Construct a family of the supported VisAD datatype Forms
|
DefaultFamily(java.lang.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(java.lang.String[] args)
Test the DefaultFamily class
|
add, open, open, saveaddFormNode, getFormspublic DefaultFamily(java.lang.String name)
public DefaultFamily(java.lang.String name,
boolean netcdfText)
public static void addFormToList(FormNode form) throws java.lang.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.java.lang.ArrayIndexOutOfBoundsException - If there is no more room in the list.public static void main(java.lang.String[] args)
throws BadFormException,
java.io.IOException,
java.rmi.RemoteException,
VisADException
BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADException