public String encode(){
  StringBuilder retval=new StringBuilder();
  ListIterator li=sdpFields.listIterator();
  while (li.hasNext()) {
    SDPField sdphdr=(SDPField)li.next();
    retval.append(sdphdr.encode());
  }
  return retval.toString();
}

public String encode ( ) { StringBuilder retval = new StringBuilder ( ) ; ListIterator li = sdpFields . listIterator ( ) ; while ( li . hasNext ( ) ) { SDPField sdphdr = ( SDPField ) li . next ( ) ; retval . append ( sdphdr . encode ( ) ) ; } return retval . toString ( ) ; }
encode into a canonical string .
