public class PayloadType extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PayloadType.Audio
Audio payload type.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_PT |
static int |
MAX_FIXED_PT |
static String |
NODENAME |
| Constructor and Description |
|---|
PayloadType()
Default constructor.
|
PayloadType(int id,
String name)
Constructor with Id and name
|
PayloadType(int id,
String name,
int channels)
Constructor with Id, name and number of channels
|
PayloadType(PayloadType pt)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getChannels()
Get the number of channels used by this payload type.
|
protected String |
getChildAttributes() |
static String |
getElementName()
Returns the XML element name of the element.
|
int |
getId()
Get the ID.
|
String |
getName()
Get the printable name.
|
int |
hashCode() |
boolean |
isNull()
Return true if the Payload type is not valid
|
void |
setChannels(int channels)
Set the numer of channels for a payload type.
|
void |
setId(int id)
Set the ID.
|
void |
setName(String name)
Set the printable name.
|
String |
toXML() |
public static final String NODENAME
public static int MAX_FIXED_PT
public static int INVALID_PT
public PayloadType(int id, String name, int channels)
id - The identifiername - A namechannels - The number of channelspublic PayloadType()
public PayloadType(int id, String name)
id - The identificationname - A namepublic PayloadType(PayloadType pt)
pt - The other payload type.public int getId()
public void setId(int id)
id - IDpublic String getName()
public void setName(String name)
name - the printable namepublic int getChannels()
public void setChannels(int channels)
channels - The number of channelspublic boolean isNull()
public static String getElementName()
protected String getChildAttributes()