public class MapForm extends Form implements FormFileInformer
| Constructor and Description |
|---|
MapForm()
Construct a Form for reading in McIDAS map files
|
| 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 a list of default suffixes for McIDAS map files
|
FormNode |
getForms(Data data)
Return the data forms that are compatible with a data object
|
boolean |
isThisType(byte[] block)
Determines if this is a McIDAS map file from the starting block
|
boolean |
isThisType(java.lang.String name)
Determines if this is a McIDAS map file from the name
|
DataImpl |
open(java.lang.String id)
Open the file specified by the string
|
DataImpl |
open(java.net.URL url)
Open the file specified by the URL
|
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 data to checkpublic 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 FormNodeUnimplementedException - - can't be done yet.BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADExceptionpublic void add(java.lang.String id,
Data data,
boolean replace)
throws BadFormException
add in class FormNodeBadFormExceptionpublic DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
open in class FormNodeid - string representing the path to the fileBadFormExceptionjava.io.IOExceptionVisADExceptionpublic DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
open in class FormNodeurl - URL of the remote map fileBadFormExceptionVisADExceptionjava.io.IOException