org.iges.grads.server
Class GradsGridSubsetter

java.lang.Object
  |
  +--org.iges.anagram.AbstractModule
        |
        +--org.iges.grads.server.GradsSubsetter
              |
              +--org.iges.grads.server.GradsGridSubsetter
All Implemented Interfaces:
Module

public class GradsGridSubsetter
extends GradsSubsetter

Streams subsets from gridded datasets.


Nested Class Summary
 class GradsGridSubsetter.DataMethods
          This is a wrapper class for a DataHandle, which implements operations that are dependent on configuration settings specific to the subset module, e.g., buffer size.
protected  class GradsGridSubsetter.Serializer
          A one-time-use class which serializes a particular data variable, with a particular set of bounds, to a particular stream.
 
Field Summary
 
Fields inherited from class org.iges.grads.server.GradsSubsetter
bufferSize, tool
 
Fields inherited from class org.iges.anagram.AbstractModule
log, moduleName, parent, server
 
Constructor Summary
GradsGridSubsetter()
           
 
Method Summary
 void subset(DataHandle data, CEEvaluator ce, long subsetLimit, boolean useASCII, java.io.OutputStream out)
          Streams a subset to the output stream given, using the CEEvaluator given.
 
Methods inherited from class org.iges.grads.server.GradsSubsetter
configure, getModuleID, setBufferSize, setTool
 
Methods inherited from class org.iges.anagram.AbstractModule
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GradsGridSubsetter

public GradsGridSubsetter()
Method Detail

subset

public void subset(DataHandle data,
                   CEEvaluator ce,
                   long subsetLimit,
                   boolean useASCII,
                   java.io.OutputStream out)
            throws ModuleException
Description copied from class: GradsSubsetter
Streams a subset to the output stream given, using the CEEvaluator given.

Specified by:
subset in class GradsSubsetter
Parameters:
useASCII - If true, print ASCII text; if false, send DODS/3.2 binary stream.
subsetLimit - maximum allowable size for the subset
Throws:
ModuleException - if subsetLimit bytes have already been written and there is still more data; or, if any errors occur during the subset operation