dods.clients.matlab
Class MatlabSequence

java.lang.Object
  extended by dods.dap.BaseType
      extended by dods.dap.DConstructor
          extended by dods.dap.DSequence
              extended by 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.


Field Summary
 
Fields inherited from class dods.dap.DSequence
allValues, END_OF_SEQUENCE, START_OF_INSTANCE, varTemplate
 
Constructor Summary
MatlabSequence()
           
MatlabSequence(String name)
           
 
Method Summary
 void deserialize(DataInputStream source, ServerVersion sv, StatusUI statusUI)
          Reads data from a DataInputStream.
 BaseType[] getColumn(String name)
          Returns a column in a sequence corresponding to name
 
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.DConstructor
addVariable
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatlabSequence

public MatlabSequence()

MatlabSequence

public MatlabSequence(String name)
Method Detail

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)