|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.FormNode visad.data.Form visad.data.jai.JAIForm
public class JAIForm
JAIForm is the VisAD data form for image formats supported by the Java Advanced Imaging API: BMP, GIF, FlashPix, JPEG, PNG, PNM, and TIFF.
Field Summary |
---|
Fields inherited from class visad.data.Form |
---|
mathType |
Constructor Summary | |
---|---|
JAIForm()
Constructs a new JAI file form. |
Method Summary | |
---|---|
void |
add(String id,
Data data,
boolean replace)
Adds data to an existing JAI image file. |
String[] |
getDefaultSuffixes()
Returns the default file suffixes for the JAI image file formats. |
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 a JAI image file. |
boolean |
isThisType(String name)
Checks if the given string is a valid filename for a JAI image file. |
static void |
main(String[] args)
Run 'java visad.data.visad.JAIForm in_file' to test read an image file supported by Java Advanced Imaging. |
DataImpl |
open(String id)
Opens an existing JAI image file from the given location. |
DataImpl |
open(URL url)
Opens an existing JAI image file from the given URL. |
void |
save(String id,
Data data,
boolean replace)
Saves a VisAD Data object to a JAI image format at the given location. |
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 JAIForm()
Method Detail |
---|
public boolean isThisType(String name)
isThisType
in interface FormFileInformer
name
- name of the file
public boolean isThisType(byte[] block)
isThisType
in interface FormFileInformer
block
- block of bytes from file
public String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
public void save(String id, Data data, boolean replace) throws BadFormException, IOException, RemoteException, VisADException
save
in class FormNode
BadFormException
- Always thrown (method is not implemented).
IOException
RemoteException
VisADException
public void add(String id, Data data, boolean replace) throws BadFormException
add
in class FormNode
BadFormException
- Always thrown (method is not implemented).public DataImpl open(String id) throws BadFormException, IOException, VisADException
open
in class FormNode
BadFormException
IOException
VisADException
public DataImpl open(URL url) throws BadFormException, IOException, VisADException
open
in class FormNode
BadFormException
IOException
VisADException
public FormNode getForms(Data data)
FormNode
getForms
in class FormNode
public static void main(String[] args) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |