org.objectweb.jonathan.protocols.rtp

Class RTPHeader


public final class RTPHeader
extends Object

RTPHeader is a utility class representing a RTP header

Field Summary

static int
length
the length in byte of a RTP header
boolean
marker
the marker status
byte
payload
the type of payload
short
sequence_no
the sequence number of the RTP packet
int
source_id
the source id of the RTP packet
int
timestamp
the timestamp of the RTP packet

Constructor Summary

RTPHeader()
Build a new uninitialized RTP header
RTPHeader(UnMarshaller msg)
Build a new RTP header from an input message

Method Summary

void
decode(UnMarshaller msg)
Initialize a RTP header from an input message
void
encode(byte[] array)
Marshalls the RTP header into an output message
String
toString()
Returns a string describing the contents of the RTP header

Field Details

length

public static int length
the length in byte of a RTP header


marker

public boolean marker
the marker status


payload

public byte payload
the type of payload


sequence_no

public short sequence_no
the sequence number of the RTP packet


source_id

public int source_id
the source id of the RTP packet


timestamp

public int timestamp
the timestamp of the RTP packet

Constructor Details

RTPHeader

public RTPHeader()
Build a new uninitialized RTP header


RTPHeader

public RTPHeader(UnMarshaller msg)
            throws JonathanException
Build a new RTP header from an input message

Parameters:
msg - the input message from which the RTP header will be extracted

Method Details

decode

public void decode(UnMarshaller msg)
            throws JonathanException
Initialize a RTP header from an input message

Parameters:
msg - the input message from which the RTP header will be extracted


encode

public void encode(byte[] array)
            throws JonathanException
Marshalls the RTP header into an output message

Parameters:


toString

public String toString()
Returns a string describing the contents of the RTP header

Returns:
String a string describing the contents of the RTP header