|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.protocols.rtp.RTPHeader
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int length
public byte payload
public boolean marker
public short sequence_no
public int timestamp
public int source_id
Constructor Detail |
public RTPHeader()
public RTPHeader(UnMarshaller msg) throws org.objectweb.jonathan.apis.kernel.JonathanException
msg
- the input message from which the RTP header will be extracted
org.objectweb.jonathan.apis.kernel.JonathanException
- thrown if the unmarshalling failsMethod Detail |
public void decode(UnMarshaller msg) throws org.objectweb.jonathan.apis.kernel.JonathanException
msg
- the input message from which the RTP header will be extracted
org.objectweb.jonathan.apis.kernel.JonathanException
- thrown if the unmarshalling failspublic void encode(byte[] array) throws org.objectweb.jonathan.apis.kernel.JonathanException
org.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |