public class SdpField
extends java.lang.Object
A SDP field is formatted as a separated SDP line of the form <type> = <value>
Modifier and Type | Field and Description |
---|---|
protected char |
type
Field type
|
protected java.lang.String |
value
Field value
|
Constructor and Description |
---|
SdpField(char s_type,
java.lang.String s_value)
Creates a new SDP field.
|
SdpField(SdpField sf)
Creates a new SDP field.
|
SdpField(java.lang.String str)
Creates a new SDP field based on a SDP line of the form <type>=<value>.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of the SDP field.
|
boolean |
equals(java.lang.Object obj)
Whether the SDP field is equal to another SDP filed.
|
char |
getType()
Gets the field type.
|
java.lang.String |
getValue()
Gets the field value.
|
java.lang.String |
toString()
Gets string representation of the SDP field.
|
public SdpField(char s_type, java.lang.String s_value)
s_type
- the field types_value
- the field valuepublic SdpField(SdpField sf)
sf
- the SDP field to be clonedpublic SdpField(java.lang.String str)
str
- the <type> = <value> linepublic java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other SDP fieldpublic char getType()
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object