public class JAIForm extends Form implements FormFileInformer
| Constructor and Description |
|---|
JAIForm()
Constructs a new JAI file form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String id,
Data data,
boolean replace)
Adds data to an existing JAI image file.
|
java.lang.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(java.lang.String name)
Checks if the given string is a valid filename for a JAI image file.
|
static void |
main(java.lang.String[] args)
Run 'java visad.data.visad.JAIForm in_file' to test read
an image file supported by Java Advanced Imaging.
|
DataImpl |
open(java.lang.String id)
Opens an existing JAI image file from the given location.
|
DataImpl |
open(java.net.URL url)
Opens an existing JAI image file from the given URL.
|
void |
save(java.lang.String id,
Data data,
boolean replace)
Saves a VisAD Data object to a JAI image format at the given location.
|
getMathTypepublic boolean isThisType(java.lang.String name)
isThisType in interface FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - block of bytes from filepublic java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformerpublic void save(java.lang.String id,
Data data,
boolean replace)
throws BadFormException,
java.io.IOException,
java.rmi.RemoteException,
VisADException
save in class FormNodeBadFormException - Always thrown (method is not implemented).java.io.IOExceptionjava.rmi.RemoteExceptionVisADExceptionpublic void add(java.lang.String id,
Data data,
boolean replace)
throws BadFormException
add in class FormNodeBadFormException - Always thrown (method is not implemented).public DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
open in class FormNodeBadFormExceptionjava.io.IOExceptionVisADExceptionpublic DataImpl open(java.net.URL url) throws BadFormException, java.io.IOException, VisADException
open in class FormNodeBadFormExceptionjava.io.IOExceptionVisADExceptionpublic FormNode getForms(Data data)
FormNodepublic static void main(java.lang.String[] args)
throws VisADException,
java.rmi.RemoteException,
java.io.IOException
VisADExceptionjava.rmi.RemoteExceptionjava.io.IOException