ifc.bim.openecg.jtools.jparser
Class SectHeader

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

public class SectHeader
extends java.lang.Object

The structure of a section's header, able to load itself from a file


Field Summary
 int dataLen
          Stores the computed section data lenght
 int protVer
          Stores the section protocol version
 java.lang.String res
          Stores the reserved bytes
 int sectCrc
          Stores the section Crc
 int sectId
          Stores the section Id
 int sectLen
          Stores the section lenght
 int sectVer
          Stores the section version
 
Constructor Summary
SectHeader()
          Constructs a SectHeader with empty fields
 
Method Summary
 void Load(javax.imageio.stream.FileImageOutputStream fHandle)
          Retrieves the header information from the specified FileImageOutputStream starting at current stream index and stores them in the header fields.
 void Print()
          Prints the headers basic information on the standard output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sectId

public int sectId
Stores the section Id


sectCrc

public int sectCrc
Stores the section Crc


sectLen

public int sectLen
Stores the section lenght


dataLen

public int dataLen
Stores the computed section data lenght


sectVer

public int sectVer
Stores the section version


protVer

public int protVer
Stores the section protocol version


res

public java.lang.String res
Stores the reserved bytes

Constructor Detail

SectHeader

public SectHeader()
Constructs a SectHeader with empty fields

Method Detail

Load

public void Load(javax.imageio.stream.FileImageOutputStream fHandle)
          throws java.lang.Exception
Retrieves the header information from the specified FileImageOutputStream starting at current stream index and stores them in the header fields.

Parameters:
fHandle - the FileImageOutputStream associated with SCP-ECG file
Throws:
java.lang.Exception - if any error occurs during the operation.

Print

public void Print()
Prints the headers basic information on the standard output.