Package ucar.nc2.iosp.bufr
Class BitCounterCompressed
- java.lang.Object
-
- ucar.nc2.iosp.bufr.BitCounterCompressed
-
- All Implemented Interfaces:
BitCounter
public class BitCounterCompressed extends Object implements BitCounter
Count size of compressed fields- Since:
- Jul 4, 2008
-
-
Constructor Summary
Constructors Constructor Description BitCounterCompressed(DataDescriptor dkey, int n, int bitOffset)This counts the size of an array of Structures or Sequences, ie Structure(n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNestedCounters(int innerDimensionSize)intgetBitPos(int msgOffset)BitCounterCompressed[]getNestedCounters(int innerIndex)intgetNumberRows()intgetStartingBitPos()intgetTotalBits()intncounters()Number of nested fieldsvoidshow(Formatter out, int indent)
-
-
-
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 subKeysn- numbers of rows in the tablebitOffset- 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)
-
getNumberRows
public int getNumberRows()
- Specified by:
getNumberRowsin interfaceBitCounter
-
-