visad.data.hdf5
Class HDF5Form
- java.lang.Object
-
- visad.data.FormNode
-
- visad.data.Form
-
- visad.data.hdf5.HDF5Form
-
- All Implemented Interfaces:
- FormFileInformer
public class HDF5Form extends Form implements FormFileInformer
HDF5Form is a data form adapter for HDF5 files.
-
-
Constructor Summary
Constructors Constructor and Description HDF5Form()HDF5Form(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(java.lang.String id, Data data, boolean replace)Add data to an existing data object.java.lang.String[]getDefaultSuffixes()Get default suffixes for files/URLs handeled by this form.DataImplgetFileData(HDF5FileAdapted file)FormNodegetForms(Data data)Return the data forms that are compatible with a data object.MathTypegetMathType(HDF5FileAdapted file)DataImplgetVisADDataObject(HDF5DataAdaptable h_data)booleanisThisType(byte[] block)Check to see if the block contains the magic number for this form.booleanisThisType(java.lang.String name)Check to see if the file name might be right for this form.DataImplopen(java.lang.String file_path)Open an existing data object.DataImplopen(java.net.URL url)Open a data object specified as a URL.voidsave(java.lang.String filename, Data data, boolean replace)Save a VisAD data object in this form.-
Methods inherited from class visad.data.Form
getMathType
-
-
-
-
Method Detail
-
isThisType
public boolean isThisType(java.lang.String name)
Description copied from interface:FormFileInformerCheck to see if the file name might be right for this form.- Specified by:
isThisTypein interfaceFormFileInformer- Parameters:
name- name of the file- Returns:
- true if the name is right for this type of form
-
isThisType
public boolean isThisType(byte[] block)
Description copied from interface:FormFileInformerCheck to see if the block contains the magic number for this form.- Specified by:
isThisTypein interfaceFormFileInformer- Parameters:
block- block of bytes from file- Returns:
- true if the magic number is right
-
getDefaultSuffixes
public java.lang.String[] getDefaultSuffixes()
Description copied from interface:FormFileInformerGet default suffixes for files/URLs handeled by this form.- Specified by:
getDefaultSuffixesin interfaceFormFileInformer- Returns:
- array of suffixes
-
getForms
public FormNode getForms(Data data)
Description copied from class:FormNodeReturn the data forms that are compatible with a data object.
-
open
public DataImpl open(java.lang.String file_path) throws VisADException, java.rmi.RemoteException
Description copied from class:FormNodeOpen an existing data object.- Specified by:
openin classFormNode- Throws:
VisADExceptionjava.rmi.RemoteException
-
open
public DataImpl open(java.net.URL url) throws VisADException
Description copied from class:FormNodeOpen a data object specified as a URL.- Specified by:
openin classFormNode- Throws:
VisADException
-
add
public void add(java.lang.String id, Data data, boolean replace) throws BadFormExceptionDescription copied from class:FormNodeAdd data to an existing data object.- Specified by:
addin classFormNode- Throws:
BadFormException
-
save
public void save(java.lang.String filename, Data data, boolean replace) throws BadFormException, java.rmi.RemoteException, VisADExceptionDescription copied from class:FormNodeSave a VisAD data object in this form.- Specified by:
savein classFormNode- Throws:
BadFormExceptionjava.rmi.RemoteExceptionVisADException
-
getMathType
public MathType getMathType(HDF5FileAdapted file) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getFileData
public DataImpl getFileData(HDF5FileAdapted file) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getVisADDataObject
public DataImpl getVisADDataObject(HDF5DataAdaptable h_data) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG