public SDPAnnounceParser(String sdpAnnounce) { sdpMessage = new Vector(); int start = 0; sdpMessage = new Vector();  while (start < sdpAnnounce.length() ) { int add = 0; int index = sdpAnnounce.indexOf("\n",start); if (index == -1) break; if (sdpAnnounce.charAt(index - 1) == '\r') { index = index - 1; add = 1; } String line = sdpAnnounce.substring(start,index); start = index + 1 + add; sdpMessage.addElement(line); }
public SDPAnnounceParser(Vector sdpMessage) { this.sdpMessage=sdpMessage;
     public SDPAnnounceParser(String sdpAnnounce) {          sdpMessage = new Vector();	  int start = 0;	  sdpMessage = new Vector();	  // Bug fix by Andreas Bystrom.	  while (start < sdpAnnounce.length() ) {  	      int add = 0;  	      int index = sdpAnnounce.indexOf("\n",start);  	      if (index == -1) break;  	      if (sdpAnnounce.charAt(index - 1) == '\r') {    		index = index - 1;    		add = 1;  	      }   	     String line = sdpAnnounce.substring(start,index);  	     start = index + 1 + add;  	    sdpMessage.addElement(line);	  }	  /**	  while (start < sdpAnnounce.length() ) {	     int index = sdpAnnounce.indexOf("\r\n",start);	     if (index == -1) break;	     String line = sdpAnnounce.substring(start,index);	     start = index + 2;	     sdpMessage.addElement(line);	  }**/	     }