Documentation of 'org.freehep.util.io.TagHeader' Java class
TagHeader
org.freehep.util.io

Class TagHeader



  • public class TagHeader
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TagHeader(int tagID, long length)
      Creates a tag header
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, 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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.