public class DODSForm extends Form implements FormFileInformer
Instances are mutable.
| Modifier and Type | Field and Description |
|---|---|
static 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(String id,
Data data,
boolean replace)
Throws an exception.
|
static DODSForm |
dodsForm()
Returns an instance of this class.
|
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(String spec)
Indicates if a dataset specification is consistent with a DODS dataset
specification.
|
DataImpl |
open(String id)
Opens an existing DODS dataset.
|
DataImpl |
open(URL url)
Opens an existing data object.
|
void |
save(String id,
Data data,
boolean replace)
Throws an exception.
|
getMathTypepublic static final String SUFFIX
public static DODSForm dodsForm()
public void save(String id, Data data, boolean replace) throws BadFormException, IOException, RemoteException, VisADException
save in class FormNodeid - An identifier.data - A VisAD data object.replace - Whether or not to replace an existing object.UnimplementedException - Always.BadFormExceptionIOExceptionRemoteExceptionVisADExceptionpublic void add(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(String id) throws BadFormException, 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.RemoteException - Java RMI failure.IOExceptionpublic DataImpl open(URL url) throws BadFormException, VisADException, 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.RemoteException - Java RMI failure.IOExceptionpublic boolean isThisType(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 String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformerCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.