public class NcSDStructure extends SDStructure
| Modifier and Type | Field and Description |
|---|---|
protected List<opendap.dap.BaseType> |
memberBTlist |
protected NcSDStructure |
org |
protected ucar.ma2.StructureData |
sdata |
| Constructor and Description |
|---|
NcSDStructure(NcSDStructure org,
ucar.ma2.StructureData sdata) |
NcSDStructure(ucar.nc2.Structure s,
List<opendap.dap.BaseType> list)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ucar.nc2.Variable |
getVariable() |
boolean |
read(String datasetName,
Object specialO)
Read a value from the named dataset for this variable.
|
void |
serialize(String dataset,
DataOutputStream sink,
CEEvaluator ce,
Object specialO)
Server-side serialization for OPeNDAP variables (sub-classes of
BaseType). |
void |
setData(ucar.ma2.StructureData sdata) |
equal, greater_eql, greater, isRead, isSynthesized, less_eql, less, not_equal, printDecl, printVal, printXML, regexp, setProject, setRead, setSynthesizedaddVariable, checkSemantics, cloneDAG, deserialize, elementCount, externalize, getTypeName, getVar, getVarCount, getVariable, getVariablesaddAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, delAttribute, delAttribute, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getLongName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printConstraint, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printXML, printXML, printXML, printXML, setClearNameclone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProjectedequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisProject, setProjectprotected List<opendap.dap.BaseType> memberBTlist
protected NcSDStructure org
protected ucar.ma2.StructureData sdata
public NcSDStructure(ucar.nc2.Structure s,
List<opendap.dap.BaseType> list)
s - the netcdf Structurelist - of the member variablespublic NcSDStructure(NcSDStructure org, ucar.ma2.StructureData sdata)
public ucar.nc2.Variable getVariable()
public boolean read(String datasetName, Object specialO) throws opendap.dap.NoSuchVariableException, IOException
SDStructureread in interface ServerMethodsread in class SDStructuredatasetName - String identifying the file or other data store
from which to read a vaue for this variable.specialO - This Object is a goody that is used by Server implementations
to deliver important, and as yet unknown, stuff to the read method. If you
don't need it, make it a null.true if more data remains to be read, otherwise
false. This is an abtsract method that must be implemented
as part of the installation/localization of a OPeNDAP server.opendap.dap.NoSuchVariableException - When a variable can't be found.IOException - When there is a problem reading data.public void setData(ucar.ma2.StructureData sdata)
public void serialize(String dataset, DataOutputStream sink, CEEvaluator ce, Object specialO) throws opendap.dap.NoSuchVariableException, DAP2ServerSideException, IOException
SDStructureBaseType).
This does not send the entire class as the Java Serializable
interface does, rather it sends only the binary data values. Other software
is responsible for sending variable type information (see DDS).
Writes data to a DataOutputStream. This method is used
on the server side of the OPeNDAP client/server connection, and possibly
by GUI clients which need to download OPeNDAP data, manipulate it, and
then re-save it as a binary file.serialize in interface ServerMethodsserialize in class SDStructuredataset - a String indicated which dataset to read
from (Or something else if you so desire).sink - a DataOutputStream to write to.ce - the CEEvaluator to use in the parse process.specialO - This Object is a goody that is used by a
Server implementations to deliver important, and as
yet unknown, stuff to the read method. If you don't
need it, make it a null.opendap.dap.NoSuchVariableException - When a variable cannot be found.DAP2ServerSideException - When there is a server error.IOException - thrown on any OutputStream exception.BaseType,
DDS,
ServerDDS