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