public class Vis5DTopoForm extends Form implements FormFileInformer
Constructor and Description |
---|
Vis5DTopoForm()
Create a new Vis5DTopoForm
|
Modifier and Type | Method and Description |
---|---|
void |
add(String id,
Data data,
boolean replace)
Add data to an existing data object.
|
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(String name)
Check to see if the file name might be right for this form.
|
DataImpl |
open(InputStream in)
Returns a VisAD data object corresponding to an input stream for
a Vis5DTopography file.
|
DataImpl |
open(String id)
Returns a VisAD data object corresponding to a Vis5D topography file.
|
DataImpl |
open(URL url)
Returns a VisAD data object corresponding to a URL pointing to a
Vis5D topography file.
|
void |
save(String id,
Data data,
boolean replace)
Save a VisAD data object in this form.
|
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
id
- file iddata
- Data object to savereplace
- true to replace the existing fileUnimplementedException
- not implemented for this formBadFormException
IOException
RemoteException
VisADException
public void add(String id, Data data, boolean replace) throws BadFormException
add
in class FormNode
id
- 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(URL url) throws BadFormException, VisADException, IOException
open
in class FormNode
url
- 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.IOException
- if an I/O failure occurs.public DataImpl open(String id) throws BadFormException, IOException, VisADException
open
in class FormNode
id
- 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.IOException
- if an I/O failure occurs.public DataImpl open(InputStream in) throws BadFormException, 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.IOException
- if an I/O failure occurs.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.