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

Class Tag

  • Direct Known Subclasses:
    UndefinedTag


    public abstract class Tag
    extends java.lang.Object
    Generic Tag to be used by TaggedIn/OutputStreams. The tag contains an ID, name and a version. Concrete subclasses should implement the IO Read and Write methods.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DEFAULT_TAG
      This is the tagID for the default tag handler.
    • Field Detail

      • DEFAULT_TAG

        public static final int DEFAULT_TAG
        This is the tagID for the default tag handler.
        See Also:
        Constant Field Values
    • Method Detail

      • getTag

        public int getTag()
        Get the tag number.
        Returns:
        tagID
      • getVersion

        public int getVersion()
        Get the version number.
        Returns:
        version number
      • getName

        public java.lang.String getName()
        Get the tag name.
        Returns:
        tag name
      • getTagType

        public int getTagType()
        This returns the type of block
        Returns:
        tag type
      • read

        public abstract Tag read(int tagID,
                                 TaggedInputStream input,
                                 int len)
                          throws java.io.IOException
        This reads the information from the given input and returns a new Tag
        Parameters:
        tagID - id of the tag to read
        input - stream to read from
        len - length to read
        Returns:
        read Tag
        Throws:
        java.io.IOException - if read fails
      • write

        public abstract void write(int tagID,
                                   TaggedOutputStream output)
                            throws java.io.IOException
        This writes the information to the given output
        Parameters:
        tagID - id of tag to write
        output - stream to write to
        Throws:
        java.io.IOException - if write fails
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.