public class Vis5DTopoForm extends Form implements FormFileInformer
| Constructor and Description |
|---|
Vis5DTopoForm()
Create a new Vis5DTopoForm
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String id,
Data data,
boolean replace)
Add data to an existing data object.
|
java.lang.String[] |
getDefaultSuffixes()
Get default suffixes for Vis5D topography files
|
FormNode |
getForms(Data data)
Return the data forms that are compatible with a data object.
|
boolean |
isThisType(byte[] block)
Check to see if the block contains the magic number
|
boolean |
isThisType(java.lang.String name)
Check to see if the file name might be right for this form.
|
DataImpl |
open(java.io.InputStream in)
Returns a VisAD data object corresponding to an input stream for
a Vis5DTopography file.
|
DataImpl |
open(java.lang.String id)
Returns a VisAD data object corresponding to a Vis5D topography file.
|
DataImpl |
open(java.net.URL url)
Returns a VisAD data object corresponding to a URL pointing to a
Vis5D topography file.
|
void |
save(java.lang.String id,
Data data,
boolean replace)
Save a VisAD data object in this form.
|
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 FormNodeid - file iddata - Data object to savereplace - true to replace the existing fileUnimplementedException - not implemented for this formBadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADExceptionpublic void add(java.lang.String id,
Data data,
boolean replace)
throws BadFormException
add in class FormNodeid - file iddata - Data object to append toreplace - true to replace the existing fileBadFormException - not applicable to this formpublic FormNode getForms(Data data)
public DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
open in class FormNodeurl - URL pointing to the Vis5D topographyBadFormException - if not a Vis5D topo file.VisADException - if a problem occurs in core VisAD. Probably a
VisAD object couldn't be created.java.io.IOException - if an I/O failure occurs.public DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
open in class FormNodeid - path to the existing Vis5D file.BadFormException - if not a Vis5D topo file.VisADException - if a problem occurs in core VisAD. Probably a
VisAD object couldn't be created.java.io.IOException - if an I/O failure occurs.public DataImpl open(java.io.InputStream in) throws BadFormException, java.io.IOException, VisADException
in - Input streamBadFormException - if not a Vis5D topo file.VisADException - if a problem occurs in core VisAD. Probably a
VisAD object couldn't be created.java.io.IOException - if an I/O failure occurs.