org.mobicents.media.server.testsuite.general.rtp
Class RtpPacket

java.lang.Object
  extended by org.mobicents.media.server.testsuite.general.rtp.RtpPacket
All Implemented Interfaces:
java.io.Serializable

public class RtpPacket
extends java.lang.Object
implements java.io.Serializable

Author:
Oleg Kulikov
See Also:
Serialized Form

Constructor Summary
RtpPacket(byte[] data)
          Creates a new instance of RtpPacket
RtpPacket(byte payloadType, int seqNumber, int timestamp, long ssrc, byte[] payload)
           
RtpPacket(byte payloadType, int seqNumber, int timestamp, long ssrc, byte[] payload, int offset, int length)
           
 
Method Summary
 byte[] getPayload()
           
 int getPayloadType()
           
 int getSeqNumber()
           
 long getSSRC()
           
 java.util.Date getTime()
           
 int getTimestamp()
           
 void setTime(java.util.Date time)
           
 byte[] toByteArray()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RtpPacket

public RtpPacket(byte[] data)
          throws java.io.IOException
Creates a new instance of RtpPacket

Throws:
java.io.IOException

RtpPacket

public RtpPacket(byte payloadType,
                 int seqNumber,
                 int timestamp,
                 long ssrc,
                 byte[] payload)

RtpPacket

public RtpPacket(byte payloadType,
                 int seqNumber,
                 int timestamp,
                 long ssrc,
                 byte[] payload,
                 int offset,
                 int length)
Method Detail

getTime

public java.util.Date getTime()

setTime

public void setTime(java.util.Date time)

getSSRC

public long getSSRC()

getPayloadType

public int getPayloadType()

getSeqNumber

public int getSeqNumber()

getPayload

public byte[] getPayload()

getTimestamp

public int getTimestamp()

toByteArray

public byte[] toByteArray()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.