Class BinaryTag


  • public class BinaryTag
    extends Tag
    http://matroska.org/technical/specs/index.html webm tag to hold "binary" value as byte[] array
    • 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 byte[] getValue()
        getter for value
        Returns:
        - byte array stored by this binary tag
      • setValue

        public BinaryTag setValue​(byte[] 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
      • bytesToHex

        public static String bytesToHex​(byte[] bytes)
        Utility helper method to get string representation of given byte array
        Parameters:
        bytes - - bytes to be printed
        Returns:
        - String representation of byte array