ifc.bim.openecg.jtools.jparser
Class Sect002

java.lang.Object
  |
  +--ifc.bim.openecg.jtools.jparser.SectGen
        |
        +--ifc.bim.openecg.jtools.jparser.Sect002

public class Sect002
extends SectGen

The structure of Section 2 with methods to parse data


Nested Class Summary
 class Sect002.HTable
          The structure of a Huffman table
 
Field Summary
 Sect002.HTable[] tables
          Stores Huffman tables
 int tabNum
          Stores the number of Huffman tables
 
Fields inherited from class ifc.bim.openecg.jtools.jparser.SectGen
data, head, indx, log
 
Constructor Summary
Sect002()
          Constructs a Sect2 with an anonymous logger
Sect002(java.util.logging.Logger log)
          Constructs a Sect2 that uses a specific logger
 
Method Summary
 boolean decode(byte[] inpBuf, int[] outBuf)
          Decode the input sequence of Huffman codes
 void Parse(int lNum)
          Parse the data part retrieving the value of single fields
 void PrnInfo()
          Prints basic useful informations about this section
 
Methods inherited from class ifc.bim.openecg.jtools.jparser.SectGen
Load, readByte, readFully, readInt, readShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tabNum

public int tabNum
Stores the number of Huffman tables


tables

public Sect002.HTable[] tables
Stores Huffman tables

Constructor Detail

Sect002

public Sect002()
Constructs a Sect2 with an anonymous logger


Sect002

public Sect002(java.util.logging.Logger log)
Constructs a Sect2 that uses a specific logger

Parameters:
log - the logger to be used
Method Detail

Parse

public void Parse(int lNum)
           throws java.lang.Exception
Parse the data part retrieving the value of single fields

Overrides:
Parse in class SectGen
Parameters:
lNum - total number of leads stored in the SCP-ECG record (irrilevant for this section)
Throws:
java.lang.Exception - if any error occours during the operation

decode

public boolean decode(byte[] inpBuf,
                      int[] outBuf)
Decode the input sequence of Huffman codes

Parameters:
inpBuf - the input sequence of Huffman codes as an array of bytes
outBuf - the byte array in wich to store the decoded sequence
Returns:
thrue if the sequence was decodified without errors, false otherwise

PrnInfo

public void PrnInfo()
Prints basic useful informations about this section

Overrides:
PrnInfo in class SectGen