|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--cnrg.itx.datax.devices.RTPPacket
Class to represent an RTP packet. This will contain the RTP header and the audio data byte array.
| Field Summary | |
private byte[] |
data
Attribute to store the audio data as a byte array. |
private RTPHeader |
header
Attribute to store the RTP header for the packet. |
| Constructor Summary | |
RTPPacket()
Default constructor for an RTP packet. |
|
RTPPacket(byte[] rtpData)
Constructor for making a RTP packet out of a byte array that represents a RTP packet. |
|
RTPPacket(RTPHeader header,
byte[] data)
Constructor for making an RTP packet from its constituents. |
|
| Method Summary | |
byte[] |
getData()
Accessor for the audio data byte array. |
RTPHeader |
getRTPHeader()
Accessor for the RTP header. |
void |
setData(byte[] data)
Mutator for the audio data byte array. |
void |
setRTPHeader(RTPHeader header)
Mutator for the RTP header. |
byte[] |
toByteArray()
Method to get the byte array form of an RTP packet. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private RTPHeader header
private byte[] data
| Constructor Detail |
public RTPPacket()
public RTPPacket(RTPHeader header,
byte[] data)
header - the RTP header for this packetdata - the byte array containing the audio datapublic RTPPacket(byte[] rtpData)
rtpData - the array of bytes representing a RTP packet| Method Detail |
public RTPHeader getRTPHeader()
public void setRTPHeader(RTPHeader header)
RTPHeader - the new RTP header for this packetpublic byte[] getData()
public void setData(byte[] data)
byte[] - the array of audio data bytespublic byte[] toByteArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||