Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NcStreamReader.DataResult
-
Constructor Summary
Constructors Constructor Description NcStreamReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
getCompression(boolean reset)
StructureDataIterator
getStructureIterator(InputStream is, NetcdfFile ncfile)
NcStreamReader.DataResult
readData(InputStream is, NetcdfFile ncfile, String location)
Read the result of a data request.NetcdfFile
readStream(InputStream is, NetcdfFile ncfile)
-
-
-
Method Detail
-
getCompression
public static double getCompression(boolean reset)
-
readStream
public NetcdfFile readStream(InputStream is, NetcdfFile ncfile) throws IOException
- Throws:
IOException
-
readData
public NcStreamReader.DataResult readData(InputStream is, NetcdfFile ncfile, String location) 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
-
-