public static string encodeMimeWord(String value, string charset, string scheme, string lineBreakChars, int lineLength) { if (lineLength != 76) { throw new UnimplementedException("Mime line length option"); } if (!lineBreakChars.equals("\r\n")) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < lineBreakChars.length(); i++) { char ch = lineBreakChars[i]; string hex = Integer.toHexString(ch); sb.append("0x"); sb.append(hex); } throw new UnimplementedException(L.l("Mime line break option: '{0}'", sb)); } return(MimeUtility.encodeWord(value, charset, scheme)); }