@Test public void testDecodeJapaneseEncodedWordsWithFallback() { String enc = "=?random?B?GyRCTCQbKEobJEI+NRsoShskQkJ6GyhKGyRCOS0bKEo=?= " + "=?garbage?B?GyRCOXAbKEobJEIiKBsoShskQiU1GyhKGyRCJSQbKEo=?= " + "=?charset?B?GyRCJUkbKEobJEIlUxsoShskQiU4GyhKGyRCJU0bKEo=?= " + "=?name?B?GyRCJTkbKEobJEIkThsoShskQjdoGyhKGyRCRGobKEo=?= " + "=?trash?B?GyRCSEcbKEobJEIkRxsoShskQiQ5GyhKGyRCISobKEo=?="; String dec = DecoderUtil.decodeEncodedWords(enc, Charset.forName("ISO-2022-JP")); Assert.assertEquals("\u672A\u627F\u8AFE\u5E83\u544A\u203B\u30B5\u30A4\u30C9\u30D3" + "\u30B8\u30CD\u30B9\u306E\u6C7A\u5B9A\u7248\u3067\u3059\uFF01", dec); }
static String decodeEncodedWords(String body) { return decodeEncodedWords(body, DecodeMonitor.SILENT); }
DecoderUtil { static String decodeEncodedWords(String body) { return decodeEncodedWords(body, DecodeMonitor.SILENT); } }
DecoderUtil { static String decodeEncodedWords(String body) { return decodeEncodedWords(body, DecodeMonitor.SILENT); }  }
DecoderUtil { static String decodeEncodedWords(String body) { return decodeEncodedWords(body, DecodeMonitor.SILENT); }  static String decodeEncodedWords(String body, DecodeMonitor monitor); static String decodeEncodedWords(String body, Charset fallback); static String decodeEncodedWords(String body, DecodeMonitor monitor, Charset fallback); }
DecoderUtil { static String decodeEncodedWords(String body) { return decodeEncodedWords(body, DecodeMonitor.SILENT); }  static String decodeEncodedWords(String body, DecodeMonitor monitor); static String decodeEncodedWords(String body, Charset fallback); static String decodeEncodedWords(String body, DecodeMonitor monitor, Charset fallback);  }