public class DODSForm extends Form implements FormFileInformer
Instances are mutable.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUFFIX
The suffix in the path-component of a URL specification that identifies
a dataset specification as being a DODS dataset specification.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DODSForm()
Constructs from nothing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String id,
Data data,
boolean replace)
Throws an exception.
|
static DODSForm |
dodsForm()
Returns an instance of this class.
|
java.lang.String[] |
getDefaultSuffixes()
Returns the path-component suffixes that identifies a dataset
specification as being a DODS dataset specification.
|
FormNode |
getForms(Data data)
Returns
null. |
boolean |
isThisType(byte[] block)
Does nothing.
|
boolean |
isThisType(java.lang.String spec)
Indicates if a dataset specification is consistent with a DODS dataset
specification.
|
DataImpl |
open(java.lang.String id)
Opens an existing DODS dataset.
|
DataImpl |
open(java.net.URL url)
Opens an existing data object.
|
void |
save(java.lang.String id,
Data data,
boolean replace)
Throws an exception.
|
getMathTypepublic static final java.lang.String SUFFIX
public static DODSForm dodsForm()
public void save(java.lang.String id,
Data data,
boolean replace)
throws BadFormException,
java.io.IOException,
java.rmi.RemoteException,
VisADException
save in class FormNodeid - An identifier.data - A VisAD data object.replace - Whether or not to replace an existing object.UnimplementedException - Always.BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADExceptionpublic void add(java.lang.String id,
Data data,
boolean replace)
throws BadFormException
add in class FormNodeid - An identifier.data - A VisAD data object.replace - Whether or not to replace an existing object.BadFormException - Always.public DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
open in class FormNodeid - The URL for a DODS dataset. The path component
should have a SUFFIX suffix.null.BadFormException - The DODS dataset is corrupt.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.java.io.IOExceptionpublic DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
open in class FormNodeurl - The URL for a DODS dataset. The path component
should have a SUFFIX suffix.BadFormException - The DODS dataset is corrupt.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.java.io.IOExceptionpublic boolean isThisType(java.lang.String spec)
isThisType in interface FormFileInformerspec - A dataset specification. NB: Not a URL.true if and only if the dataset
specification is consistent with a DODS dataset
specification.public boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - A block of data.false always.public java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformer