ucar.nc2
Interface ProxyReader

All Known Implementing Classes:
AddeVariable, Aggregation.DatasetProxyReader, AggregationExisting, AggregationFmrc, AggregationNew, AggregationOuterDimension, AggregationTiled, CoordinateAxis, CoordinateAxis1D, CoordinateAxis1DTime, CoordinateAxis2D, DODSGrid, DODSStructure, DODSVariable, Sequence, SequenceDS, Structure, StructureDS, StructurePseudo, StructurePseudo2Dim, StructurePseudoDS, Variable, VariableDS

public interface ProxyReader

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

Author:
caron

Method Summary
 Array reallyRead(Variable client, CancelTask cancelTask)
          Read all the data for a Variable.
 Array reallyRead(Variable client, Section section, CancelTask cancelTask)
          Read a section of the data for a Variable.
 

Method Detail

reallyRead

Array reallyRead(Variable client,
                 CancelTask cancelTask)
                 throws IOException
Read all the data for a Variable.

Parameters:
client - 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

Array reallyRead(Variable client,
                 Section section,
                 CancelTask cancelTask)
                 throws IOException,
                        InvalidRangeException
Read a section of the data for a Variable.

Parameters:
client - 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.