|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.probe.rtp.RTCPPacket
public abstract class RTCPPacket
Create a RTCP packet. Packet type available for CLIF : 200, 201, 202, 203, 204.
Constructor Summary | |
---|---|
RTCPPacket()
|
Method Summary | |
---|---|
abstract byte[] |
createPacket()
Create a RTCP packet. |
byte[] |
createRtcpPacket(java.util.LinkedList<byte[]> reports)
Create a RTCP packet with each reports created previously. |
static java.lang.Integer |
decodeCount(byte[] data,
java.lang.Integer offset)
Returns the count header (RC, SC or Subtype). |
static java.lang.Integer |
decodeLength(byte[] data,
java.lang.Integer offset)
Returns the length header. |
static java.lang.Integer |
decodePacketType(byte[] data,
java.lang.Integer offset)
Returns the packet type header. |
static java.lang.Integer |
decodePadding(byte[] data,
java.lang.Integer offset)
Returns the padding. |
static java.lang.Integer |
decodeTwoComplement(java.lang.Integer value)
Decode the value (RTP use two's complement) |
static java.lang.Long |
decodeTwoComplement(java.lang.Long value)
Decode the value (RTP use two's complement) |
static java.lang.Integer |
decodeVersion(byte[] data,
java.lang.Integer offset)
Returns the version. |
abstract java.lang.Integer |
getPacketType()
Returns the packet type of the RTCP packet. |
static java.util.LinkedList<RTCPInformation> |
getRtcpPackets(byte[] data,
java.lang.Long time)
Method to separate RTCP report. |
static boolean |
packetTypeAvailable(java.lang.Integer packetType)
Tells if the packet type is supported by CLIF. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RTCPPacket()
Method Detail |
---|
public abstract byte[] createPacket()
public abstract java.lang.Integer getPacketType()
public byte[] createRtcpPacket(java.util.LinkedList<byte[]> reports)
reports
- : the report to add to the packet.
public static java.util.LinkedList<RTCPInformation> getRtcpPackets(byte[] data, java.lang.Long time)
data
- : the data to decode.time
- : the arrival time of the packet.
public static java.lang.Integer decodeVersion(byte[] data, java.lang.Integer offset)
data
- : the raw RTCP packet.offset
- : the offset to start to decode.
public static java.lang.Integer decodePadding(byte[] data, java.lang.Integer offset)
data
- : the raw RTCP packet.offset
- : the offset to start to decode.
public static java.lang.Integer decodeCount(byte[] data, java.lang.Integer offset)
data
- : the raw RTCP packet.offset
- : the offset to start to decode.
public static java.lang.Integer decodePacketType(byte[] data, java.lang.Integer offset)
data
- : the raw RTCP packet.offset
- : the offset to start to decode.
public static java.lang.Integer decodeLength(byte[] data, java.lang.Integer offset)
data
- : the raw RTCP packet.offset
- : the offset to start to decode.
public static java.lang.Long decodeTwoComplement(java.lang.Long value)
value
- : the value to convert (include between -128 and 127)
public static java.lang.Integer decodeTwoComplement(java.lang.Integer value)
value
- : the value to convert (include between -128 and 127)
public static boolean packetTypeAvailable(java.lang.Integer packetType)
packetType
- : the packet type to test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |