ucar.nc2.ncml
Class Aggregation.DatasetProxyReader

java.lang.Object
  extended by ucar.nc2.ncml.Aggregation.DatasetProxyReader
All Implemented Interfaces:
ProxyReader
Enclosing class:
Aggregation

protected class Aggregation.DatasetProxyReader
extends java.lang.Object
implements ProxyReader


Method Summary
 Array read(Variable mainV, CancelTask cancelTask)
          Read all the data for a Variable.
 Array read(Variable mainV, Section section, CancelTask cancelTask)
          Read a section of the data for a Variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public Array read(Variable mainV,
                  CancelTask cancelTask)
           throws java.io.IOException
Description copied from interface: ProxyReader
Read all the data for a Variable.

Specified by:
read in interface ProxyReader
Parameters:
mainV - the Variable
cancelTask - allow user to cancel, may be null.
Returns:
memory resident Array containing the data. Will have same shape as the Variable.
Throws:
java.io.IOException - on error

read

public Array read(Variable mainV,
                  Section section,
                  CancelTask cancelTask)
           throws java.io.IOException,
                  InvalidRangeException
Description copied from interface: ProxyReader
Read a section of the data for a Variable.

Specified by:
read in interface ProxyReader
Parameters:
mainV - the Variable
section - the section of data to read.
cancelTask - allow user to cancel, may be null.
Returns:
memory resident Array containing the data. Will have same shape as the Section.
Throws:
java.io.IOException - on error
InvalidRangeException - if section has incorrect rank or shape.