String encoded_string; encoded_string = KEY_FIELD + type; if (type.compareToIgnoreCase(SDPKeywords.PROMPT) == 0) { if (type.compareToIgnoreCase(SDPKeywords.URI) == 0) { encoded_string += Separators.COLON; encoded_string += keyData; } else { if (keyData != null) { encoded_string += Separators.COLON; encoded_string += keyData; } } } encoded_string += Separators.NEWLINE; return encoded_string; }
String encoded_string; encoded_string = KEY_FIELD + type; if (keyData != null) { encoded_string += Separators.COLON; encoded_string += keyData; } encoded_string += Separators.NEWLINE; return encoded_string; }
    public String encode() {        String encoded_string; 	encoded_string = KEY_FIELD + type;	if (type.compareToIgnoreCase(SDPKeywords.PROMPT) == 0) {	    if (type.compareToIgnoreCase(SDPKeywords.URI) == 0) {	        encoded_string += Separators.COLON;		encoded_string += keyData;	    } else {		if (keyData != null) {	           encoded_string += Separators.COLON;		   encoded_string += keyData;		}	    }	}	encoded_string += Separators.NEWLINE;	return encoded_string;    }