org.iges.grads.server.dap
Class GradsSequence

java.lang.Object
  |
  +--SDSequence
        |
        +--org.iges.grads.server.dap.GradsSequence
All Implemented Interfaces:
GradsServerMethods

public class GradsSequence
extends SDSequence
implements GradsServerMethods

An implementation of the DODS Sequence data type.

See Also:
GradsStnSubsetter, Serialized Form

Field Summary
static int END_OF_SEQUENCE
           
static boolean GOT_DATA
           
static boolean NO_MORE_DATA
           
static int START_OF_INSTANCE
           
 
Constructor Summary
GradsSequence()
          Constructs a new GradsSequence.
GradsSequence(java.lang.String n)
          Constructs a new GradsSequence with name n.
 
Method Summary
 boolean read(java.lang.String datasetName, java.lang.Object specialO)
          Dummy implementation
 boolean readVars(java.io.DataInputStream records)
          Deserializes data for each variable in the current sequence (but not any subsequences) using the stream given.
 void serialize(java.lang.String datasetName, java.io.DataOutputStream sink, CEEvaluator ce, java.lang.Object specialO, boolean useASCII)
          Writes the entire contents of the Sequence to the output stream provided, in either binary or ASCII format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_OF_INSTANCE

public static final int START_OF_INSTANCE
See Also:
Constant Field Values

END_OF_SEQUENCE

public static final int END_OF_SEQUENCE
See Also:
Constant Field Values

NO_MORE_DATA

public static final boolean NO_MORE_DATA
See Also:
Constant Field Values

GOT_DATA

public static final boolean GOT_DATA
See Also:
Constant Field Values
Constructor Detail

GradsSequence

public GradsSequence()
Constructs a new GradsSequence.


GradsSequence

public GradsSequence(java.lang.String n)
Constructs a new GradsSequence with name n.

Parameters:
n - the name of the variable.
Method Detail

read

public boolean read(java.lang.String datasetName,
                    java.lang.Object specialO)
Dummy implementation


readVars

public boolean readVars(java.io.DataInputStream records)
                 throws java.io.IOException,
                        java.io.EOFException
Deserializes data for each variable in the current sequence (but not any subsequences) using the stream given. Returns NO_MORE_DATA if an EOS marker is encountered.

java.io.IOException
java.io.EOFException

serialize

public void serialize(java.lang.String datasetName,
                      java.io.DataOutputStream sink,
                      CEEvaluator ce,
                      java.lang.Object specialO,
                      boolean useASCII)
               throws AnagramException
Writes the entire contents of the Sequence to the output stream provided, in either binary or ASCII format.

Specified by:
serialize in interface GradsServerMethods
AnagramException