|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.data.FormNode
visad.data.Form
visad.data.dods.DODSForm
public class DODSForm
Provides support for accessing the DODS form of data from VisAD.
Instances are mutable.
Field Summary | |
---|---|
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. |
Fields inherited from class visad.data.Form |
---|
mathType |
Constructor Summary | |
---|---|
protected |
DODSForm()
Constructs from nothing. |
Method Summary | |
---|---|
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. |
Methods inherited from class visad.data.Form |
---|
getMathType |
Methods inherited from class visad.data.FormNode |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUFFIX
Constructor Detail |
---|
protected DODSForm()
Method Detail |
---|
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 FormNode
id
- An identifier.data
- A VisAD data object.replace
- Whether or not to replace an existing object.
UnimplementedException
- Always.
BadFormException
java.io.IOException
java.rmi.RemoteException
VisADException
public void add(java.lang.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(java.lang.String id) throws BadFormException, java.io.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.
java.rmi.RemoteException
- Java RMI failure.
java.io.IOException
public DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.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.
java.rmi.RemoteException
- Java RMI failure.
java.io.IOException
public FormNode getForms(Data data)
null
.
getForms
in class FormNode
data
- A VisAD data object.
null
.public boolean isThisType(java.lang.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 java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |