dods.servers.test
Class test_SDArray

java.lang.Object
  extended bydods.dap.BaseType
      extended bydods.dap.DVector
          extended bydods.dap.DArray
              extended bydods.dap.Server.SDArray
                  extended bydods.servers.test.test_SDArray
All Implemented Interfaces:
ClientIO, java.lang.Cloneable, RelOps, ServerArrayMethods, ServerMethods

public class test_SDArray
extends SDArray

Holds a DODS Server Array value.

Version:
$Revision: 1.3 $
Author:
ndp
See Also:
BaseType

Constructor Summary
test_SDArray()
          Constructs a new test_SDArray.
test_SDArray(java.lang.String n)
          Constructs a new test_SDArray with name n.
 
Method Summary
 void cacheShape()
           
 int getCachedShape(int dim)
           
 boolean read(java.lang.String datasetName, java.lang.Object specialO)
          Read a value from the named dataset for this variable.
 
Methods inherited from class dods.dap.Server.SDArray
appendDim, appendDim, equal, getStart, getStop, getStride, greater_eql, greater, isProject, isRead, isSynthesized, less_eql, less, not_equal, printDecl, printVal, regexp, serialize, setProject, setProject, setProjection, setRead, setSynthesized
 
Methods inherited from class dods.dap.DArray
checkSemantics, clone, getDimension, getDimensions, getFirstDimension, getTypeName, numDimensions
 
Methods inherited from class dods.dap.DVector
addVariable, deserialize, externalize, getLength, getPrimitiveVector, setLength
 
Methods inherited from class dods.dap.BaseType
checkSemantics, elementCount, 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

test_SDArray

public test_SDArray()
Constructs a new test_SDArray.


test_SDArray

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

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

cacheShape

public void cacheShape()

getCachedShape

public int getCachedShape(int dim)

read

public boolean read(java.lang.String datasetName,
                    java.lang.Object specialO)
             throws NoSuchVariableException,
                    java.io.IOException,
                    java.io.EOFException
Read a value from the named dataset for this variable.

Specified by:
read in interface ServerMethods
Specified by:
read in class SDArray
Parameters:
datasetName - 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.
Returns:
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 DODS server.
Throws:
java.io.IOException
java.io.EOFException
NoSuchVariableException