Class SimpleBlock

java.lang.Object
org.red5.io.matroska.dtd.Tag
org.red5.io.matroska.dtd.SimpleBlock

public class SimpleBlock extends Tag
Tag representing complex block of different tags
Author:
mondain
  • Constructor Details

  • Method Details

    • parse

      public void parse(InputStream inputStream) throws IOException, ConverterException
      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
      ConverterException - - in case of any conversion errors
    • putValue

      protected void putValue(ByteBuffer bb) throws IOException
      method to store tag value to ByteBuffer given
      Specified by:
      putValue in class Tag
      Parameters:
      bb - - ByteBuffer to store value
      Throws:
      IOException - - in case of any IO errors
    • getBinary

      public byte[] getBinary()
      getter for binary
      Returns:
      - binary
    • getTimeCode

      public long getTimeCode()
      getter for time code
      Returns:
      - time code
    • getTrackNumber

      public int getTrackNumber()
      getter for track number
      Returns:
      - track number
    • isKeyFrame

      public boolean isKeyFrame()
      getter for key frame
      Returns:
      - key frame
    • toString

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