/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { StringBuilder sb = new StringBuilder(msgContent.Length + (headers.Count + contentHeaders.Count) * 20); foreach (Header h in headers) { sb.Append(h).Append(CRLF); } sb.Append(CRLF); foreach (Header h in contentHeaders) { sb.Append(h).Append(CRLF); } sb.Append(CRLF).Append(JavaString.Create(msgContent, Encoding.UTF8)); return(sb.ToString()); }
/// <summary> /// Returns message content /// </summary> /// <returns>Content</returns> public string getMessageContent() { return(JavaString.Create(msgContent, Encoding.UTF8)); }
public static JavaString CompareToIgnoreCase(this JavaObject javaObject, JavaString value) { return CompareToIgnoreCase(new JavaString(javaObject), value); }
public static JavaString CompareToIgnoreCase(this JavaString javaString, JavaString value) { return javaString.Append("compareToIgnoreCase({0})", value.ToString()); }
public static JavaString CompareToIgnoreCase(this JavaString javaString, string value) { return(javaString.Append("compareToIgnoreCase('{0}')", value)); }
public static JavaBoolean Contains(this JavaString javaString, string value) { return(new JavaBoolean(javaString).Append("contains('{0}')", value)); }
public static JavaString CompareToIgnoreCase(this JavaObject javaObject, JavaString value) { return(CompareToIgnoreCase(new JavaString(javaObject), value)); }
public static JavaString CompareToIgnoreCase(this JavaString javaString, JavaString value) { return(javaString.Append("compareToIgnoreCase({0})", value.ToString())); }