org.iges.grads.server
Class GradsGridSubsetter.Serializer

java.lang.Object
  |
  +--org.iges.grads.server.GradsGridSubsetter.Serializer
Enclosing class:
GradsGridSubsetter

protected class GradsGridSubsetter.Serializer
extends java.lang.Object


Inner Class Summary
protected  class GradsGridSubsetter.Serializer.Dim
           
 
Field Summary
protected  GradsGridSubsetter.Serializer.Dim[] dims
           
protected static int DOUBLE_SIZE
           
protected static int FLOAT_SIZE
           
protected  java.io.DataInputStream in
           
protected  java.io.File inputFile
           
protected  boolean isSubset
           
protected  boolean isTime
           
protected  java.lang.String name
           
protected  java.io.DataOutputStream out
           
protected  java.io.PrintStream p
           
protected  boolean sendASCII
           
protected  int totalInputSize
           
protected  int totalOutputSize
           
protected  int valueSize
           
 
Constructor Summary
protected GradsGridSubsetter.Serializer(dods.dap.DArray var, java.io.OutputStream out, boolean sendASCII, GradsGridSubsetter.DataMethods data, long limit)
           
 
Method Summary
protected  void buildDimList(dods.dap.DArray var)
           
protected  void openInput(dods.dap.DArray var, GradsGridSubsetter.DataMethods data)
           
protected  void serialize()
           
protected  void writeHeader()
           
protected  void writeProjectedArray(int i)
           
protected  void writeValue(GradsGridSubsetter.Serializer.Dim dim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLOAT_SIZE

protected static final int FLOAT_SIZE

DOUBLE_SIZE

protected static final int DOUBLE_SIZE

name

protected java.lang.String name

inputFile

protected java.io.File inputFile

p

protected java.io.PrintStream p

in

protected java.io.DataInputStream in

out

protected java.io.DataOutputStream out

dims

protected GradsGridSubsetter.Serializer.Dim[] dims

totalInputSize

protected int totalInputSize

totalOutputSize

protected int totalOutputSize

sendASCII

protected boolean sendASCII

isTime

protected boolean isTime

valueSize

protected int valueSize

isSubset

protected boolean isSubset
Constructor Detail

GradsGridSubsetter.Serializer

protected GradsGridSubsetter.Serializer(dods.dap.DArray var,
                                        java.io.OutputStream out,
                                        boolean sendASCII,
                                        GradsGridSubsetter.DataMethods data,
                                        long limit)
                                 throws ModuleException
Method Detail

openInput

protected void openInput(dods.dap.DArray var,
                         GradsGridSubsetter.DataMethods data)
                  throws ModuleException

buildDimList

protected void buildDimList(dods.dap.DArray var)
                     throws ModuleException

serialize

protected void serialize()
                  throws ModuleException

writeHeader

protected void writeHeader()
                    throws java.io.IOException

writeProjectedArray

protected void writeProjectedArray(int i)
                            throws java.io.IOException

writeValue

protected void writeValue(GradsGridSubsetter.Serializer.Dim dim)
                   throws java.io.IOException