Class UnsignedIntegerTag

  • Direct Known Subclasses:
    DateTag

    public class UnsignedIntegerTag
    extends Tag
    http://matroska.org/technical/specs/index.html UnsignedInteger tag is class able to store long
    • Constructor Detail

      • UnsignedIntegerTag

        public UnsignedIntegerTag​(String name,
                                  VINT id)
                           throws IOException
        Constructor
        Parameters:
        name - - the name of tag to be created
        id - - the id of tag to be created
        Throws:
        IOException - - in case of IO error
        See Also:
        Tag(String, VINT)
    • Method Detail

      • parse

        public void parse​(InputStream inputStream)
                   throws IOException
        Description copied from class: Tag
        method to read and to parse tag from inputStream given
        Specified by:
        parse in class Tag
        Parameters:
        inputStream - - stream to parse tag data from
        Throws:
        IOException - - in case of any IO errors
        See Also:
        Tag.parse(InputStream)
      • getValue

        public long getValue()
        getter for value
        Returns:
        - value
      • setValue

        public UnsignedIntegerTag setValue​(long value)
        setter for value, updates the size of this tag
        Parameters:
        value - - value to be set
        Returns:
        - this for chaining
      • toString

        public String toString()
        method to get "pretty" represented Tag
        Overrides:
        toString in class Tag