Package ucar.nc2.iosp.bufr
Class MessageCompressedDataReader
- java.lang.Object
-
- ucar.nc2.iosp.bufr.MessageCompressedDataReader
-
public class MessageCompressedDataReader extends Object
Reads through the data of a message. Can count bits / transfer all or some data to an Array.- Since:
- Nov 15, 2009
-
-
Constructor Summary
Constructors Constructor Description MessageCompressedDataReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadData(ucar.ma2.ArrayStructureMA ama, Message m, ucar.unidata.io.RandomAccessFile raf, ucar.ma2.Range r, Formatter f)Read some or all datasets from a single messageucar.ma2.ArrayStructurereadEntireMessage(ucar.nc2.Structure s, Message proto, Message m, ucar.unidata.io.RandomAccessFile raf, Formatter f)Read all datasets from a single messagestatic voidsetIterators(ucar.ma2.ArrayStructureMA ama)
-
-
-
Method Detail
-
readEntireMessage
public ucar.ma2.ArrayStructure readEntireMessage(ucar.nc2.Structure s, Message proto, Message m, ucar.unidata.io.RandomAccessFile raf, Formatter f) throws IOExceptionRead all datasets from a single message- Parameters:
s- outer variablesproto- prototype message, has been processedm- read this messageraf- from this filef- output bit count debugging info (may be null)- Returns:
- ArrayStructure with all the data from the message in it.
- Throws:
IOException- on read error
-
readData
public void readData(ucar.ma2.ArrayStructureMA ama, Message m, ucar.unidata.io.RandomAccessFile raf, ucar.ma2.Range r, Formatter f) throws IOExceptionRead some or all datasets from a single message- Parameters:
ama- place data into here in order (may be null). iterators must be already set.m- read this messageraf- from this filer- which datasets, reletive to this message. null == all.f- output bit count debugging info (may be null)- Throws:
IOException- on read error
-
setIterators
public static void setIterators(ucar.ma2.ArrayStructureMA ama)
-
-