visad.data.fits
Class FitsForm
- java.lang.Object
-
- visad.data.FormNode
-
- visad.data.Form
-
- visad.data.fits.FitsForm
-
- All Implemented Interfaces:
- FormFileInformer
public class FitsForm extends Form implements FormFileInformer
-
-
Constructor Summary
Constructors Constructor and Description FitsForm()
-
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.FormNodegetForms(Data data)Return the data forms that are compatible with a data object.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 path)Open an existing data object.DataImplopen(java.net.URL url)Open a data object specified as a URL.voidsave(java.lang.String id, 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
-
save
public void save(java.lang.String id, Data data, boolean replace) throws BadFormException, java.io.IOException, java.rmi.RemoteException, VisADExceptionDescription copied from class:FormNodeSave a VisAD data object in this form.- Specified by:
savein classFormNode- Throws:
BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADException
-
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
-
open
public DataImpl open(java.lang.String path) throws BadFormException, java.rmi.RemoteException, VisADException
Description copied from class:FormNodeOpen an existing data object.- Specified by:
openin classFormNode- Throws:
BadFormExceptionjava.rmi.RemoteExceptionVisADException
-
open
public DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
Description copied from class:FormNodeOpen a data object specified as a URL.- Specified by:
openin classFormNode- Throws:
BadFormExceptionVisADExceptionjava.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG