ifc.bim.openecg.jtools.jparser
Class JParser

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

public class JParser
extends java.lang.Object

Splits an SCP-ECG file into its main sections 0,1,2,3,4,5,6,7,8,10,11 plus eventual generic addictional sections, and exctracts embedded data


Field Summary
 byte[] data
          Stores the record data part (all except header)
 SectGen[] genSect
          Stores all eventual addictional sections
 java.util.logging.Logger[] genSectLog
          Stores a logger for each section
 java.util.logging.Logger jpLog
          The main logger to store info and error messages
 char[] protProxy
          Stores a rapresentation of leads' protected an unprotected regions
 int recCrc
          Sores the record Crc
 int recLen
          Stores the record length
 SectGen[] stdSect
          Stores the standard sections (0 through 11)
 java.util.logging.Logger[] stdSectLog
          The logger to store info and error messages
 
Constructor Summary
JParser(java.lang.String fName)
          Constructs a Jparser that replicate the SCP-ECG record structure and start parsing the file "fName", or create a new file if it doesn't exists
 
Method Summary
 int[] Decode(int lNum)
          Decompresses lead data
static void main(java.lang.String[] args)
          The main method...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jpLog

public java.util.logging.Logger jpLog
The main logger to store info and error messages


recCrc

public int recCrc
Sores the record Crc


recLen

public int recLen
Stores the record length


data

public byte[] data
Stores the record data part (all except header)


stdSect

public SectGen[] stdSect
Stores the standard sections (0 through 11)


genSect

public SectGen[] genSect
Stores all eventual addictional sections


stdSectLog

public java.util.logging.Logger[] stdSectLog
The logger to store info and error messages


genSectLog

public java.util.logging.Logger[] genSectLog
Stores a logger for each section


protProxy

public char[] protProxy
Stores a rapresentation of leads' protected an unprotected regions

Constructor Detail

JParser

public JParser(java.lang.String fName)
        throws java.lang.Exception
Constructs a Jparser that replicate the SCP-ECG record structure and start parsing the file "fName", or create a new file if it doesn't exists

Parameters:
fName - the name of the file to be parsed
Throws:
java.lang.Exception - if any error occurs parsing the file
Method Detail

main

public static void main(java.lang.String[] args)
The main method...

Parameters:
args - the runtime parameters

Decode

public int[] Decode(int lNum)
Decompresses lead data

Parameters:
lNum - the id number of the lead to be decompressed
Returns:
the decompressed lead data