hep.io.mcfio
Class MCFIOBlock

java.lang.Object
  extended by hep.io.mcfio.MCFIOBlock
All Implemented Interfaces:
hep.io.xdr.XDRSerializable

public abstract class MCFIOBlock
extends java.lang.Object
implements hep.io.xdr.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 9131 2006-10-13 04:55:11Z tonyj $
Author:
Tony Johnson (tonyj@slac.stanford.edu)

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(hep.io.xdr.XDRDataInput xdr)
           
 void write(hep.io.xdr.XDRDataOutput xdr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

protected java.lang.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(hep.io.xdr.XDRDataInput xdr)
          throws java.io.IOException
Specified by:
read in interface hep.io.xdr.XDRSerializable
Throws:
java.io.IOException

write

public void write(hep.io.xdr.XDRDataOutput xdr)
           throws java.io.IOException
Specified by:
write in interface hep.io.xdr.XDRSerializable
Throws:
java.io.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.



Copyright © 2000-2010 FreeHEP. All Rights Reserved.