ucar.nc2.iosp.bufr
Class BitCounterCompressed

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

public class BitCounterCompressed
extends Object

Count size of compressed fields

Since:
Jul 4, 2008
Author:
caron

Constructor Summary
BitCounterCompressed(DataDescriptor dkey, int n, int bitOffset)
          This counts the size of an array of Structures or Sequences, ie Structure(n)
 
Method Summary
 void addNestedCounters(int innerDimensionSize)
           
 int getBitPos(int msgOffset)
           
 BitCounterCompressed[] getNestedCounters(int innerIndex)
           
 int getStartingBitPos()
           
 int getTotalBits()
           
 int ncounters()
          Number of nested fields
 void show(Formatter out, int indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitCounterCompressed

public BitCounterCompressed(DataDescriptor dkey,
                            int n,
                            int bitOffset)
This counts the size of an array of Structures or Sequences, ie Structure(n)

Parameters:
dkey - is a structure or a sequence - so has subKeys
n - numbers of rows in the table
bitOffset - number of bits taken up by the count variable (non-zero only for sequences)
Method Detail

getStartingBitPos

public int getStartingBitPos()

getBitPos

public int getBitPos(int msgOffset)

getTotalBits

public int getTotalBits()

getNestedCounters

public BitCounterCompressed[] getNestedCounters(int innerIndex)

addNestedCounters

public void addNestedCounters(int innerDimensionSize)

ncounters

public int ncounters()
Number of nested fields

Returns:
1 if no nested fields, otherwise count of nested fields

show

public void show(Formatter out,
                 int indent)


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