net.sf.fmj.media.rtp
Class RTPBuffer

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPBuffer

public class RTPBuffer
extends java.lang.Object

Buffer for incoming RTP packets instance variables have default values in java, so classes are gettings smaller

Version:
1-1-alpha3
Author:
mgodehardt

Constructor Summary
RTPBuffer(Buffer buffer)
           
RTPBuffer(int maxItems, RTPReceptionStats receptionStats)
           
 
Method Summary
 boolean add(Buffer buffer)
           
 void addWait(Buffer buffer)
           
 void clear()
           
 int getCumulativePacketLoss()
           
 long getDuration()
           
 long getExtendedHighestSequenceNumber()
           
 int getItemCount()
           
 int getMaxItems()
           
 Buffer remove()
           
 Buffer removeWait()
           
 void resize(int maxItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTPBuffer

public RTPBuffer(int maxItems,
                 RTPReceptionStats receptionStats)

RTPBuffer

public RTPBuffer(Buffer buffer)
Method Detail

resize

public void resize(int maxItems)

clear

public void clear()
           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

getMaxItems

public int getMaxItems()

getItemCount

public int getItemCount()

getDuration

public long getDuration()

getExtendedHighestSequenceNumber

public long getExtendedHighestSequenceNumber()

getCumulativePacketLoss

public int getCumulativePacketLoss()

addWait

public void addWait(Buffer buffer)
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

removeWait

public Buffer removeWait()
                  throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

add

public boolean add(Buffer buffer)

remove

public Buffer remove()
              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException