hep.io.mcfio
Class MCFIOBlock
java.lang.Object
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)
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 |
version
protected java.lang.String version
fVersion
protected double fVersion
id
protected int id
length
protected int length
MCFIOBlock
protected MCFIOBlock(int id)
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.