Class ChunkHeader

java.lang.Object
org.red5.server.net.rtmp.message.ChunkHeader
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Constants

public class ChunkHeader extends Object implements Constants, Cloneable, Externalizable
RTMP chunk header
 rtmp_specification_1.0.pdf (5.3.1.1 page 12)
 
See Also:
  • Field Details

    • log

      protected static final org.slf4j.Logger log
    • format

      private byte format
      Chunk format
    • size

      private byte size
      Chunk size
    • channelId

      private int channelId
      Channel
  • Constructor Details

    • ChunkHeader

      public ChunkHeader()
  • Method Details

    • getFormat

      public byte getFormat()
      Getter for format
      Returns:
      chunk format
    • setFormat

      public void setFormat(byte format)
      Setter for format
      Parameters:
      format - format
    • getChannelId

      public int getChannelId()
      Getter for channel id
      Returns:
      Channel id
    • setChannelId

      public void setChannelId(int channelId)
      Setter for channel id
      Parameters:
      channelId - Header channel id
    • getSize

      public byte getSize()
      Getter for size
      Returns:
      size
    • setSize

      public void setSize(byte size)
      Setter for size
      Parameters:
      size - Header size
    • read

      public static ChunkHeader read(org.apache.mina.core.buffer.IoBuffer in)
      Read chunk header from the buffer.
      Parameters:
      in - buffer
      Returns:
      ChunkHeader instance
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • clone

      public ChunkHeader clone()
      Overrides:
      clone in class Object
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object