visad.data.vis5d
Class Vis5DFamily
- java.lang.Object
-
- visad.data.FormNode
-
- visad.data.FormFamily
-
- visad.data.FunctionFormFamily
-
- visad.data.vis5d.Vis5DFamily
-
public class Vis5DFamily extends FunctionFormFamily
A container for Vis5D file types - regular using Vis5DAdaptedForm and Vis5D TOPO files. To read a Data object from a file or URL:
Data data = new Vis5DFamily("vis5d").open(string);- See Also:
Vis5DAdaptedForm,Vis5DTopoForm
-
-
Constructor Summary
Constructors Constructor and Description Vis5DFamily(java.lang.String name)Construct a family of the supported map datatype Forms
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voidaddFormToList(FormNode form)Add to the family of the supported map datatype Formsstatic voidmain(java.lang.String[] args)Test the Vis5DFamily class run java visad.data.vis5d.Vis5DFamily v5dfile1 v5dfile2 ...DataImplopen(java.lang.String id)Open a local data object using the first appropriate map form.DataImplopen(java.net.URL url)Open a remote data object using the first appropriate map form.-
Methods inherited from class visad.data.FunctionFormFamily
add, save
-
Methods inherited from class visad.data.FormFamily
addFormNode, getForms
-
-
-
-
Constructor Detail
-
Vis5DFamily
public Vis5DFamily(java.lang.String name)
Construct a family of the supported map datatype Forms- Parameters:
name- name of the family
-
-
Method Detail
-
addFormToList
public static void addFormToList(FormNode form) throws java.lang.ArrayIndexOutOfBoundsException
Add to the family of the supported map datatype Forms- Parameters:
form- FormNode to add to the list- Throws:
java.lang.ArrayIndexOutOfBoundsException- If there is no more room in the list.
-
open
public DataImpl open(java.lang.String id) throws BadFormException, VisADException
Open a local data object using the first appropriate map form.- Overrides:
openin classFunctionFormFamily- Parameters:
id- String representing the path of the map file- Throws:
BadFormException- - no form is appropriateVisADException- - VisAD error
-
open
public DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
Open a remote data object using the first appropriate map form.- Overrides:
openin classFunctionFormFamily- Parameters:
url- URL representing the location of the map file- Throws:
BadFormException- - no form is appropriateVisADException- - VisAD errorjava.io.IOException- - file not found
-
main
public static void main(java.lang.String[] args) throws BadFormException, java.io.IOException, java.rmi.RemoteException, VisADExceptionTest the Vis5DFamily class run java visad.data.vis5d.Vis5DFamily v5dfile1 v5dfile2 ... v5dfilen- Throws:
BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADException
-
-
DMelt 3.0 © DataMelt by jWork.ORG