|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.FormNode visad.data.Form visad.data.netcdf.NetCDF
public abstract class NetCDF
The NetCDF class provides an abstract class for the family of netCDF data forms for files in a local directory.
Field Summary |
---|
Fields inherited from class visad.data.Form |
---|
mathType |
Constructor Summary | |
---|---|
NetCDF(String name)
Construct a netCDF data form. |
Method Summary | |
---|---|
String[] |
getDefaultSuffixes()
Returns the path-component suffixes that identifies a dataset specification as being a netCDF dataset specification. |
boolean |
isThisType(byte[] block)
Indicates if a given block of bytes is the start of a netCDF dataset. |
boolean |
isThisType(String spec)
Indicates if a dataset specification is consistent with a netCDF dataset specification. |
abstract DataImpl |
open(String path)
Open an existing file. |
Methods inherited from class visad.data.Form |
---|
getMathType |
Methods inherited from class visad.data.FormNode |
---|
add, getForms, getName, open, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetCDF(String name)
name
- The name for the family of netCDF data forms.Method Detail |
---|
public abstract DataImpl open(String path) throws BadFormException, IOException, VisADException
open
in class FormNode
path
- The pathname of the file.
BadFormException
- netCDF couldn't handle VisAD object.
VisADException
- Couldn't create necessary VisAD object.
IOException
- I/O error.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 netCDF
dataset specification.public boolean isThisType(byte[] block)
isThisType
in interface FormFileInformer
block
- A block of data.
public String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |