public class TextForm extends Form implements FormFileInformer
| Constructor and Description |
|---|
TextForm() |
| 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 files/URLs handeled by this form.
|
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 for this form.
|
boolean |
isThisType(java.lang.String name)
Check to see if the file name might be right for this form.
|
DataImpl |
open(java.lang.String path)
Open an existing data object.
|
DataImpl |
open(java.net.URL url)
Open a data object specified as a 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)
FormFileInformerisThisType in interface FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
FormFileInformerisThisType in interface FormFileInformerblock - block of bytes from filepublic java.lang.String[] getDefaultSuffixes()
FormFileInformergetDefaultSuffixes in interface FormFileInformerpublic void save(java.lang.String id,
Data data,
boolean replace)
throws BadFormException,
java.io.IOException,
java.rmi.RemoteException,
VisADException
FormNodesave in class FormNodeBadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADExceptionpublic void add(java.lang.String id,
Data data,
boolean replace)
throws BadFormException
FormNodeadd in class FormNodeBadFormExceptionpublic DataImpl open(java.lang.String path) throws BadFormException, java.rmi.RemoteException, VisADException
FormNodeopen in class FormNodeBadFormExceptionjava.rmi.RemoteExceptionVisADExceptionpublic DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
FormNodeopen in class FormNodeBadFormExceptionVisADExceptionjava.io.IOException