org.freehep.util.io
Class ActionHeader

java.lang.Object
  extended by org.freehep.util.io.ActionHeader

public class ActionHeader
extends Object

Keeps the actionCode and Length of a specific action. To be used in the TaggedInputStream to return the actionCode and Length, and in the TaggedOutputStream to write them.

Version:
$Id: ActionHeader.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann, Charles Loomis

Constructor Summary
ActionHeader(int actionCode, long length)
          Creates an action header
 
Method Summary
 int getAction()
           
 long getLength()
           
 void setAction(int actionCode)
          Sets the action code
 void setLength(long length)
          Sets the length of this tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHeader

public ActionHeader(int actionCode,
                    long length)
Creates an action header

Parameters:
actionCode - code for action
length - total length of the tag
Method Detail

setAction

public void setAction(int actionCode)
Sets the action code

Parameters:
actionCode - new action code

getAction

public int getAction()
Returns:
action code

setLength

public void setLength(long length)
Sets the length of this tag

Parameters:
length - new length

getLength

public long getLength()
Returns:
length of this tag


Copyright © 2000-2007 FreeHEP. All Rights Reserved.