ucar.nc2.iosp.bufr
Class MessageUncompressedDataReader

java.lang.Object
  extended by ucar.nc2.iosp.bufr.MessageUncompressedDataReader

public class MessageUncompressedDataReader
extends Object

Class Description

Since:
Nov 15, 2009
Author:
caron

Constructor Summary
MessageUncompressedDataReader()
           
 
Method Summary
 int readData(ArrayStructureBB abb, Message m, RandomAccessFile raf, Range r, boolean addTime, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUncompressedDataReader

public MessageUncompressedDataReader()
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 int readData(ArrayStructureBB abb,
                    Message m,
                    RandomAccessFile raf,
                    Range r,
                    boolean addTime,
                    Formatter f)
             throws IOException
Read some or all datasets from a single message

Parameters:
abb - place data into here in order (may be null)
m - read this message
raf - from this file
r - which datasets, reletive to this message. null == all.
addTime - add the time coordinate
f - output bit count debugging info (may be null)
Returns:
number of datasets read
Throws:
IOException - on read error


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