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(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.
|
getMathTypepublic boolean isThisType(String name)
isThisType in interface FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - block of bytes from filepublic String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformerpublic void save(String id, Data data, boolean replace) throws BadFormException, IOException, RemoteException, VisADException
save in class FormNodeBadFormException - Always thrown (method is not implemented).IOExceptionRemoteExceptionVisADExceptionpublic void add(String id, Data data, boolean replace) throws BadFormException
add in class FormNodeBadFormException - Always thrown (method is not implemented).public DataImpl open(String id) throws BadFormException, IOException, VisADException
open in class FormNodeBadFormExceptionIOExceptionVisADExceptionpublic DataImpl open(URL url) throws BadFormException, IOException, VisADException
open in class FormNodeBadFormExceptionIOExceptionVisADExceptionpublic FormNode getForms(Data data)
FormNodepublic static void main(String[] args) throws VisADException, RemoteException, IOException
VisADExceptionRemoteExceptionIOExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.