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 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
protected String version
fVersion
protected double fVersion
id
protected int id
length
protected int length
MCFIOBlock
protected MCFIOBlock(int id)
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.
Copyright © 2000-2004 FreeHEP, All Rights Reserved.