FreeHEP API
Version current

hep.io.mcfio
Class MCFIOBlock

java.lang.Object
  extended byhep.io.mcfio.MCFIOBlock
All Implemented Interfaces:
XDRSerializable
Direct Known Subclasses:
StdhepRecord

public abstract class MCFIOBlock
extends 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.

Version:
$Id: MCFIOBlock.java,v 1.4 2003/09/16 23:11:54 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
MCFIOBlock.java

Field Summary
protected  double fVersion
           
protected  int id
           
protected  int length
           
protected  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

version

protected String version

fVersion

protected double fVersion

id

protected int id

length

protected int length
Constructor Detail

MCFIOBlock

protected MCFIOBlock(int id)
Method Detail

read

public void read(XDRDataInput xdr)
          throws IOException
Specified by:
read in interface XDRSerializable
Throws:
IOException

write

public void write(XDRDataOutput xdr)
           throws IOException
Specified by:
write in interface XDRSerializable
Throws:
IOException

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.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.