ucar.nc2
Interface ProxyReader


public interface ProxyReader

An object that knows how to read the data for a Variable.

Author:
caron

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.
 

Method Detail

read

Array read(Variable mainv,
           CancelTask cancelTask)
           throws java.io.IOException
Read all the data for a Variable.

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

Array read(Variable mainv,
           Section section,
           CancelTask cancelTask)
           throws java.io.IOException,
                  InvalidRangeException
Read a section of the data for a Variable.

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.