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

Class UndefinedTag



  • public class UndefinedTag
    extends Tag
    Tag to hold the data for an Undefined Tag for the TaggedIn/OutputStreams. The data is read in and written as the number of bytes is known.
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor and Description
      UndefinedTag()
      Create Undefined Tag with 0 length.
      UndefinedTag(int tagID, int[] bytes)
      Create Undefined Tag.
    • Constructor Detail

      • UndefinedTag

        public UndefinedTag()
        Create Undefined Tag with 0 length.
      • UndefinedTag

        public UndefinedTag(int tagID,
                            int[] bytes)
        Create Undefined Tag.
        Parameters:
        tagID - undefined tagID
        bytes - bytes that follow the undefined tag
    • Method Detail

      • getTagType

        public int getTagType()
        Description copied from class: Tag
        This returns the type of block
        Overrides:
        getTagType in class Tag
        Returns:
        tag type
      • read

        public Tag read(int tagID,
                        TaggedInputStream input,
                        int len)
                 throws java.io.IOException
        Description copied from class: Tag
        This reads the information from the given input and returns a new Tag
        Specified by:
        read in class 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 void write(int tagID,
                          TaggedOutputStream output)
                   throws java.io.IOException
        Description copied from class: Tag
        This writes the information to the given output
        Specified by:
        write in class Tag
        Parameters:
        tagID - id of tag to write
        output - stream to write to
        Throws:
        java.io.IOException - if write fails
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Tag

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.