ucar.nc2.stream
Class NcStreamReader
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NcStreamReader
public NcStreamReader()
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 streamncfile
- 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.