Methods Summary |
---|
public void | add(java.lang.Object s)Adds an sdp object to this list.
this.addElement(s);
|
public java.lang.Object | clone()Copies the current instance.
SDPObjectList retval = new SDPObjectList();
for (int i = 0; i < this.size(); i++) {
Object obj =
((SDPObject) this.elementAt(i)).clone();
retval.addElement(obj);
}
return retval;
|
public java.lang.String | encode()Encodes list a single text string.
StringBuffer retval = new StringBuffer();
SDPObject sdpObject;
for (int i = 0; i < this.size(); i++) {
sdpObject = (SDPObject) this.elementAt(i);
retval.append(sdpObject.encode());
}
return retval.toString();
|
public java.lang.String | toString()Encodes list as single text string.
return this.encode();
|