getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null);  String value = mimeString.substring(idx + paramName.length() + 1);  idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx)); }
private static String getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null);  String value = mimeString.substring(idx + paramName.length() + 1);  idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx)); }
getParameter(String paramName, String mimeString){  int idx = mimeString.indexOf(paramName + "=");  if (idx == -1)    return(null);  String value = mimeString.substring(idx + paramName.length() + 1);  idx = value.indexOf(" ");  if (idx == -1)    return(value);  else    return(value.substring(0, idx));}