ucar.nc2.iosp.bufr
Class MessageCompressedDataReader

java.lang.Object
  extended by 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
Author:
caron

Constructor Summary
MessageCompressedDataReader()
           
 
Method Summary
 void readData(ArrayStructureMA ama, Message m, RandomAccessFile raf, Range r, Formatter f)
          Read some or all datasets from a single message
 ArrayStructure readEntireMessage(Structure s, Message proto, Message m, RandomAccessFile raf, Formatter f)
          Read all datasets from a single message
static void setIterators(ArrayStructureMA ama)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageCompressedDataReader

public MessageCompressedDataReader()
Method Detail

readEntireMessage

public ArrayStructure readEntireMessage(Structure s,
                                        Message proto,
                                        Message m,
                                        RandomAccessFile raf,
                                        Formatter f)
                                 throws IOException
Read all datasets from a single message

Parameters:
s - outer variables
proto - prototype message, has been processed
m - read this message
raf - from this file
f - 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(ArrayStructureMA ama,
                     Message m,
                     RandomAccessFile raf,
                     Range r,
                     Formatter f)
              throws IOException
Read 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 message
raf - from this file
r - 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(ArrayStructureMA ama)


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