public class RTPFormats extends Object
| Constructor and Description |
|---|
RTPFormats()
Creates new format collection with default size.
|
RTPFormats(int size)
Creates new formats collection with specified size
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(RTPFormat rtpFormat) |
void |
add(RTPFormats fmts) |
void |
clean() |
boolean |
contains(Format fmt) |
boolean |
contains(int p) |
RTPFormat |
find(Format fmt) |
RTPFormat |
find(int p) |
Formats |
getFormats() |
int |
getLen() |
RTPFormat |
getRTPFormat(Format format) |
RTPFormat |
getRTPFormat(int payload) |
RTPFormat |
getRTPFormat(String name) |
boolean |
hasMore() |
boolean |
hasNonDTMF() |
void |
intersection(RTPFormats other,
RTPFormats res) |
boolean |
isEmpty() |
RTPFormat |
next() |
void |
remove(RTPFormat rtpFormat) |
void |
rewind() |
int |
size() |
RTPFormat[] |
toArray() |
String |
toString() |
public RTPFormats()
public RTPFormats(int size)
size - the size of collection to be created.public int getLen()
public void add(RTPFormat rtpFormat)
public void add(RTPFormats fmts)
public void remove(RTPFormat rtpFormat)
public void clean()
public int size()
public RTPFormat getRTPFormat(int payload)
public RTPFormat[] toArray()
public Formats getFormats()
public RTPFormat find(int p)
public boolean contains(int p)
public boolean contains(Format fmt)
public boolean isEmpty()
public void rewind()
public boolean hasMore()
public RTPFormat next()
public boolean hasNonDTMF()
public void intersection(RTPFormats other, RTPFormats res)
Copyright © 2018 TeleStax, Inc.. All rights reserved.