ucar.nc2.stream
Class NcStreamReader

java.lang.Object
  extended by ucar.nc2.stream.NcStreamReader

public class NcStreamReader
extends Object

Read an ncStream InputStream into a NetcdfFile. Used by CdmRemote

Since:
Feb 7, 2009
Author:
caron

Constructor Summary
NcStreamReader()
           
 
Method Summary
 StructureDataIterator getStructureIterator(InputStream is, NetcdfFile ncfile)
           
 NetcdfFile proto2nc(NcStreamProto.Header proto, NetcdfFile ncfile)
           
 ucar.nc2.stream.NcStreamReader.DataResult readData(InputStream is, NetcdfFile ncfile)
          Read the result of a data request.
 NetcdfFile readStream(InputStream is, NetcdfFile ncfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcStreamReader

public NcStreamReader()
Method Detail

readStream

public NetcdfFile readStream(InputStream is,
                             NetcdfFile ncfile)
                      throws IOException
Throws:
IOException

readData

public ucar.nc2.stream.NcStreamReader.DataResult readData(InputStream is,
                                                          NetcdfFile ncfile)
                                                   throws IOException
Read the result of a data request. Only one variable at a time.

Parameters:
is - read from input stream
ncfile - need the metadata from here to interpret structure data
Returns:
DataResult
Throws:
IOException - on read error

getStructureIterator

public StructureDataIterator getStructureIterator(InputStream is,
                                                  NetcdfFile ncfile)
                                           throws IOException
Throws:
IOException

proto2nc

public NetcdfFile proto2nc(NcStreamProto.Header proto,
                           NetcdfFile ncfile)
                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException


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