ifc.bim.openecg.jtools.jparser
Class Sect002.HTable.Struct

java.lang.Object
  |
  +--ifc.bim.openecg.jtools.jparser.Sect002.HTable.Struct
Enclosing class:
Sect002.HTable

public class Sect002.HTable.Struct
extends java.lang.Object

The structure of a single code in a Huffman table


Field Summary
 int code
          Stores the base code
 int codeBits
          Stores the number of bits in entire code
 int mode
          Stores the table mode switch
 int prefBits
          Stores the number of bits in prefix
 int value
          Stores the base value
 
Constructor Summary
Sect002.HTable.Struct()
          Contructs a Structs and reads fields' values from section's data part
Sect002.HTable.Struct(int prefBits, int codeBits, int mode, int value, int code)
          Contructs a Structs with specified fields' values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefBits

public int prefBits
Stores the number of bits in prefix


codeBits

public int codeBits
Stores the number of bits in entire code


mode

public int mode
Stores the table mode switch


value

public int value
Stores the base value


code

public int code
Stores the base code

Constructor Detail

Sect002.HTable.Struct

public Sect002.HTable.Struct(int prefBits,
                             int codeBits,
                             int mode,
                             int value,
                             int code)
Contructs a Structs with specified fields' values

Parameters:
prefBits - the number of bits in prefix
codeBits - the number of bits in entire code
mode - the table mode switch
value - the base value
code - the base code

Sect002.HTable.Struct

public Sect002.HTable.Struct()
                      throws java.lang.Exception
Contructs a Structs and reads fields' values from section's data part

Throws:
java.lang.Exception - if any error occours