org.freehep.util.io
Class ActionHeader
- java.lang.Object
-
- org.freehep.util.io.ActionHeader
-
public class ActionHeader extends java.lang.ObjectKeeps 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.
-
-
Constructor Summary
Constructors Constructor and Description ActionHeader(int actionCode, long length)Creates an action header
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetAction()longgetLength()voidsetAction(int actionCode)Sets the action codevoidsetLength(long length)Sets the length of this tag
-
-
-
Constructor Detail
-
ActionHeader
public ActionHeader(int actionCode, long length)Creates an action header- Parameters:
actionCode- code for actionlength- 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
-
-
DMelt 3.0 © DataMelt by jWork.ORG