visad.data.hdf5
Class HDF5Form

java.lang.Object
  extended by visad.data.FormNode
      extended by visad.data.Form
          extended by visad.data.hdf5.HDF5Form
All Implemented Interfaces:
FormFileInformer

public class HDF5Form
extends Form
implements FormFileInformer

HDF5Form is a data form adapter for HDF5 files.


Field Summary
 
Fields inherited from class visad.data.Form
mathType
 
Constructor Summary
HDF5Form()
           
HDF5Form(java.lang.String name)
           
 
Method Summary
 void add(java.lang.String id, Data data, boolean replace)
          Add data to an existing data object.
 java.lang.String[] getDefaultSuffixes()
           
 DataImpl getFileData(HDF5FileAdapted file)
           
 FormNode getForms(Data data)
          Return the data forms that are compatible with a data object.
 MathType getMathType(HDF5FileAdapted file)
           
 DataImpl getVisADDataObject(HDF5DataAdaptable h_data)
           
 boolean isThisType(byte[] block)
           
 boolean isThisType(java.lang.String name)
           
 DataImpl open(java.lang.String file_path)
          Open an existing data object.
 DataImpl open(java.net.URL url)
          Open a data object specified as a URL.
 void save(java.lang.String filename, Data data, boolean replace)
          Save a VisAD data object in this form.
 
Methods inherited from class visad.data.Form
getMathType
 
Methods inherited from class visad.data.FormNode
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HDF5Form

public HDF5Form()

HDF5Form

public HDF5Form(java.lang.String name)
Method Detail

isThisType

public boolean isThisType(java.lang.String name)
Specified by:
isThisType in interface FormFileInformer

isThisType

public boolean isThisType(byte[] block)
Specified by:
isThisType in interface FormFileInformer

getDefaultSuffixes

public java.lang.String[] getDefaultSuffixes()
Specified by:
getDefaultSuffixes in interface FormFileInformer

getForms

public FormNode getForms(Data data)
Description copied from class: FormNode
Return the data forms that are compatible with a data object.

Specified by:
getForms in class FormNode

open

public DataImpl open(java.lang.String file_path)
              throws VisADException,
                     java.rmi.RemoteException
Description copied from class: FormNode
Open an existing data object.

Specified by:
open in class FormNode
Throws:
VisADException
java.rmi.RemoteException

open

public DataImpl open(java.net.URL url)
              throws VisADException
Description copied from class: FormNode
Open a data object specified as a URL.

Specified by:
open in class FormNode
Throws:
VisADException

add

public void add(java.lang.String id,
                Data data,
                boolean replace)
         throws BadFormException
Description copied from class: FormNode
Add data to an existing data object.

Specified by:
add in class FormNode
Throws:
BadFormException

save

public void save(java.lang.String filename,
                 Data data,
                 boolean replace)
          throws BadFormException,
                 java.rmi.RemoteException,
                 VisADException
Description copied from class: FormNode
Save a VisAD data object in this form.

Specified by:
save in class FormNode
Throws:
BadFormException
java.rmi.RemoteException
VisADException

getMathType

public MathType getMathType(HDF5FileAdapted file)
                     throws VisADException,
                            java.rmi.RemoteException
Throws:
VisADException
java.rmi.RemoteException

getFileData

public DataImpl getFileData(HDF5FileAdapted file)
                     throws VisADException,
                            java.rmi.RemoteException
Throws:
VisADException
java.rmi.RemoteException

getVisADDataObject

public DataImpl getVisADDataObject(HDF5DataAdaptable h_data)
                            throws VisADException,
                                   java.rmi.RemoteException
Throws:
VisADException
java.rmi.RemoteException