Package org.red5.io

Interface ITag

All Superinterfaces:
IoConstants
All Known Implementing Classes:
ImmutableTag, Tag

public interface ITag extends IoConstants
A Tag represents the contents or payload of a streamable file.
Author:
The Red5 Project, Dominick Accattato (daccattato@gmail.com), Luke Hubbard, Codegent Ltd (luke@codegent.com)
  • Method Details

    • getBody

      org.apache.mina.core.buffer.IoBuffer getBody()
      Return the body ByteBuffer
      Returns:
      ByteBuffer Body as byte buffer
    • getBodySize

      int getBodySize()
      Return the size of the body
      Returns:
      int Body size
    • getData

      org.apache.mina.core.buffer.IoBuffer getData()
      Returns the data as a ByteBuffer
      Returns:
      ByteBuffer Data as byte buffer
    • getDataType

      byte getDataType()
      Get the data type
      Returns:
      byte Data type as byte
    • getPreviousTagSize

      int getPreviousTagSize()
      Returns previous tag size
      Returns:
      int Previous tag size
    • getTimestamp

      int getTimestamp()
      Return the timestamp
      Returns:
      int Timestamp
    • setBody

      void setBody(org.apache.mina.core.buffer.IoBuffer body)
      Set the body ByteBuffer.
      Parameters:
      body - Body as ByteBuffer
    • setBodySize

      void setBodySize(int size)
      Set the size of the body.
      Parameters:
      size - Body size
    • setDataType

      void setDataType(byte datatype)
      Set the data type.
      Parameters:
      datatype - Data type
    • setPreviousTagSize

      void setPreviousTagSize(int size)
      Set the size of the previous tag.
      Parameters:
      size - Previous tag size
    • setTimestamp

      void setTimestamp(int timestamp)
      Set the timestamp.
      Parameters:
      timestamp - Timestamp