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.
|
getMathType
public boolean isThisType(String name)
isThisType
in interface FormFileInformer
name
- name of the filepublic boolean isThisType(byte[] block)
isThisType
in interface FormFileInformer
block
- block of bytes from filepublic 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
public static void main(String[] args) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.