dods.clients.matlab
Class MatlabSequence
java.lang.Object
dods.dap.BaseType
dods.dap.DConstructor
dods.dap.DSequence
dods.clients.matlab.MatlabSequence
- All Implemented Interfaces:
- ClientIO, Cloneable
public class MatlabSequence
- extends DSequence
A Sequence class which will return columns of variables as well as
individual variables.
Methods inherited from class dods.dap.DSequence |
addRow, addVariable, checkSemantics, clone, delRow, elementCount, externalize, getLevel, getRow, getRowCount, getTypeName, getVar, getVariable, getVariable, getVariables, printDecl, printVal, setLevel, writeMarker |
Methods inherited from class dods.dap.BaseType |
checkSemantics, elementCount, getLongName, getName, getParent, newPrimitiveVector, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, setName, setParent |
MatlabSequence
public MatlabSequence()
MatlabSequence
public MatlabSequence(String name)
getColumn
public BaseType[] getColumn(String name)
throws NoSuchVariableException
- Returns a column in a sequence corresponding to
name
- Parameters:
name
- The name of the variable to be retrieved. It can be of the
form . or simply the name of the
variable.
- Returns:
- The column in the sequence as an array of BaseTypes.
- Throws:
NoSuchVariableException
deserialize
public void deserialize(DataInputStream source,
ServerVersion sv,
StatusUI statusUI)
throws IOException,
EOFException,
DataReadException
- Description copied from class:
DSequence
- Reads data from a
DataInputStream
. This method is only used
on the client side of the DODS client/server connection.
- Specified by:
deserialize
in interface ClientIO
- Overrides:
deserialize
in class DSequence
- Parameters:
source
- a DataInputStream
to read from.sv
- the ServerVersion
returned by the server.statusUI
- the StatusUI
object to use for GUI updates
and user cancellation notification (may be null).
- Throws:
EOFException
- if EOF is found before the variable is completely
deserialized.
IOException
- thrown on any other InputStream exception.
DataReadException
- if an unexpected value was read.- See Also:
ClientIO.deserialize(DataInputStream, ServerVersion, StatusUI)