ucar.nc2.iosp.bufr
Class BitCounterCompressed
java.lang.Object
ucar.nc2.iosp.bufr.BitCounterCompressed
public class BitCounterCompressed
- extends Object
Count size of compressed fields
- Since:
- Jul 4, 2008
- Author:
- caron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.