|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.data.FormNode
visad.data.Form
visad.data.ij.ImageJForm
public class ImageJForm
ImageJForm is the VisAD data form for the image formats supported by Wayne Rasband's excellent ImageJ program:
Field Summary |
---|
Fields inherited from class visad.data.Form |
---|
mathType |
Constructor Summary | |
---|---|
ImageJForm()
Constructs a new ImageJ file form. |
Method Summary | |
---|---|
void |
add(java.lang.String id,
Data data,
boolean replace)
Adds data to an existing image file. |
java.lang.String[] |
getDefaultSuffixes()
Returns the default file suffixes supported by ImageJ. |
FormNode |
getForms(Data data)
Return the data forms that are compatible with a data object. |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for this form. |
boolean |
isThisType(java.lang.String name)
Checks if the given string is a valid filename for this form. |
static void |
main(java.lang.String[] args)
Run 'java visad.data.ij.ImageJForm in_file' to read in_file. |
DataImpl |
open(java.lang.String id)
Opens an existing image file from the given filename. |
DataImpl |
open(java.net.URL url)
Opens an existing image file from the given URL. |
void |
save(java.lang.String id,
Data data,
boolean replace)
Saves a VisAD Data object to an ImageJ format. |
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 |
---|
public ImageJForm()
Method Detail |
---|
public boolean isThisType(java.lang.String name)
isThisType
in interface FormFileInformer
public boolean isThisType(byte[] block)
isThisType
in interface FormFileInformer
public java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
public void save(java.lang.String id, Data data, boolean replace) throws BadFormException, java.io.IOException, java.rmi.RemoteException, VisADException
save
in class FormNode
id
- Filename of image file to save.data
- VisAD Data to convert to image format.replace
- Whether to overwrite an existing file.
BadFormException
- Always thrown (method is not implemented).
java.io.IOException
java.rmi.RemoteException
VisADException
public void add(java.lang.String id, Data data, boolean replace) throws BadFormException
add
in class FormNode
BadFormException
- Always thrown (method is not implemented).public DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
open
in class FormNode
BadFormException
java.io.IOException
VisADException
public DataImpl open(java.net.URL url) throws BadFormException, java.io.IOException, VisADException
open
in class FormNode
BadFormException
java.io.IOException
VisADException
public FormNode getForms(Data data)
FormNode
getForms
in class FormNode
public static void main(java.lang.String[] args) throws VisADException, java.rmi.RemoteException, java.io.IOException
VisADException
java.rmi.RemoteException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |