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.
|
getMathType
public 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 FormNode
id
- An identifier.data
- A VisAD data object.replace
- Whether or not to replace an existing object.UnimplementedException
- Always.BadFormException
IOException
RemoteException
VisADException
public void add(String id, Data data, boolean replace) throws BadFormException
add
in class FormNode
id
- 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 FormNode
id
- 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.IOException
public DataImpl open(URL url) throws BadFormException, VisADException, IOException
open
in class FormNode
url
- 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.IOException
public boolean isThisType(String spec)
isThisType
in interface FormFileInformer
spec
- 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 FormFileInformer
block
- A block of data.false
always.public String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.