org.freehep.util.io
Class TagHeader

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

public class TagHeader
extends Object

Keeps the tagID and Length of a specific tag. To be used in the InputStream to return the tagID and Length, and in the OutputStream to write them.

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

Constructor Summary
TagHeader(int tagID, long length)
          Creates a tag header
 
Method Summary
 long getLength()
           
 int getTag()
           
 void setLength(long length)
          Sets the length of the tag
 void setTag(int tagID)
          Sets the tag id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagHeader

public TagHeader(int tagID,
                 long length)
Creates a tag header

Parameters:
tagID - id of tag
length - length of the tag, including the header
Method Detail

setTag

public void setTag(int tagID)
Sets the tag id

Parameters:
tagID - new tag id

getTag

public int getTag()
Returns:
tagID

setLength

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

Parameters:
length - new length

getLength

public long getLength()
Returns:
tag length


Copyright © 2000-2007 FreeHEP. All Rights Reserved.