Beispiel #1
0
        /// <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());
        }
Beispiel #2
0
 /// <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());
 }
Beispiel #5
0
 public static JavaString CompareToIgnoreCase(this JavaString javaString, string value)
 {
     return(javaString.Append("compareToIgnoreCase('{0}')", value));
 }
Beispiel #6
0
 public static JavaBoolean Contains(this JavaString javaString, string value)
 {
     return(new JavaBoolean(javaString).Append("contains('{0}')", value));
 }
Beispiel #7
0
 public static JavaString CompareToIgnoreCase(this JavaObject javaObject, JavaString value)
 {
     return(CompareToIgnoreCase(new JavaString(javaObject), value));
 }
Beispiel #8
0
 public static JavaString CompareToIgnoreCase(this JavaString javaString, JavaString value)
 {
     return(javaString.Append("compareToIgnoreCase({0})", value.ToString()));
 }