hep.io.mcfio
Class MCFIOBlock

java.lang.Object
  |
  +--hep.io.mcfio.MCFIOBlock
All Implemented Interfaces:
XDRSerializable
Direct Known Subclasses:
StdhepRecord

public abstract class MCFIOBlock
extends java.lang.Object
implements XDRSerializable

The block class is used as the super class of all classes that read blocks. It deals with reading the block header.


Field Summary
protected  double fVersion
           
protected  int id
           
protected  int length
           
protected  java.lang.String version
           
 
Constructor Summary
protected MCFIOBlock(int id)
           
 
Method Summary
protected  int getLength()
          Call during write to get the length of the block.
 void read(XDRDataInput xdr)
           
 void write(XDRDataOutput xdr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id

length

protected int length

version

protected java.lang.String version

fVersion

protected double fVersion
Constructor Detail

MCFIOBlock

protected MCFIOBlock(int id)
Method Detail

read

public void read(XDRDataInput xdr)
          throws java.io.IOException
Specified by:
read in interface XDRSerializable

write

public void write(XDRDataOutput xdr)
           throws java.io.IOException
Specified by:
write in interface XDRSerializable

getLength

protected int getLength()
Call during write to get the length of the block. By default returns the value of the lenth variable, but can be overriden for a different algorithm.