Class ImmutableTag

java.lang.Object
org.red5.server.stream.consumer.ImmutableTag
All Implemented Interfaces:
IoConstants, ITag

public class ImmutableTag extends Object implements ITag
An ImmutableTag represents immutable encapsulation of flash media data. The timestamp is the only mutable field.
Author:
Paul Gregoire (mondain@gmail.com)
  • Method Details

    • getDataType

      public byte getDataType()
      Get the data type
      Specified by:
      getDataType in interface ITag
      Returns:
      Tag data type
    • getTimestamp

      public int getTimestamp()
      Return the timestamp
      Specified by:
      getTimestamp in interface ITag
      Returns:
      Tag timestamp
    • setTimestamp

      public void setTimestamp(int timestamp)
      Specified by:
      setTimestamp in interface ITag
    • getData

      public org.apache.mina.core.buffer.IoBuffer getData()
      Specified by:
      getData in interface ITag
    • getBody

      public org.apache.mina.core.buffer.IoBuffer getBody()
      Return the body IoBuffer
      Specified by:
      getBody in interface ITag
      Returns:
      Tag body
    • getBodySize

      public int getBodySize()
      Return the size of the body
      Specified by:
      getBodySize in interface ITag
      Returns:
      Tag body size
    • getPreviousTagSize

      public int getPreviousTagSize()
      Return previous tag size
      Specified by:
      getPreviousTagSize in interface ITag
      Returns:
      Previous tag size
    • setBody

      public void setBody(org.apache.mina.core.buffer.IoBuffer body)
      Specified by:
      setBody in interface ITag
    • setBodySize

      public void setBodySize(int size)
      Specified by:
      setBodySize in interface ITag
    • setDataType

      public void setDataType(byte datatype)
      Specified by:
      setDataType in interface ITag
    • setPreviousTagSize

      public void setPreviousTagSize(int size)
      Specified by:
      setPreviousTagSize in interface ITag
    • toString

      public String toString()
      Prints out the contents of the tag
      Overrides:
      toString in class Object
      Returns:
      Tag contents
    • build

      public static ImmutableTag build(byte dataType, int timestamp)
    • build

      public static ImmutableTag build(byte dataType, int timestamp, Object data)
    • build

      public static ImmutableTag build(byte dataType, int timestamp, org.apache.mina.core.buffer.IoBuffer data)
    • build

      public static ImmutableTag build(byte dataType, int timestamp, byte[] data, int previousTagSize)
    • build

      public static ImmutableTag build(byte dataType, int timestamp, org.apache.mina.core.buffer.IoBuffer data, int previousTagSize)