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 Object
implements ProxyReader


Method Summary
 Array reallyRead(Variable mainV, CancelTask cancelTask)
          Read all the data for a Variable.
 Array reallyRead(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

reallyRead

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

Specified by:
reallyRead in interface ProxyReader
Parameters:
mainV - the client Variable
cancelTask - user may cancel
Returns:
memory resident Array containing the data. Will have same shape as the Variable.
Throws:
IOException - on error

reallyRead

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

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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.