@Test public void testDecodeB() throws UnsupportedEncodingException { String s = DecoderUtil.decodeB("VGhpcyBpcyB0aGUgcGxhaW4gd" + "GV4dCBtZXNzYWdlIQ==", "ISO8859-1", DecodeMonitor.STRICT); Assert.assertEquals("This is the plain text message!", s); }
static String decodeB(String encodedText, String charset, DecodeMonitor monitor) throws UnsupportedEncodingException { byte[] decodedBytes = decodeBase64(encodedText, monitor); return new String(decodedBytes, charset); }
DecoderUtil { static String decodeB(String encodedText, String charset, DecodeMonitor monitor) throws UnsupportedEncodingException { byte[] decodedBytes = decodeBase64(encodedText, monitor); return new String(decodedBytes, charset); } }
DecoderUtil { static String decodeB(String encodedText, String charset, DecodeMonitor monitor) throws UnsupportedEncodingException { byte[] decodedBytes = decodeBase64(encodedText, monitor); return new String(decodedBytes, charset); }  }
DecoderUtil { static String decodeB(String encodedText, String charset, DecodeMonitor monitor) throws UnsupportedEncodingException { byte[] decodedBytes = decodeBase64(encodedText, monitor); return new String(decodedBytes, charset); }  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 decodeB(String encodedText, String charset, DecodeMonitor monitor) throws UnsupportedEncodingException { byte[] decodedBytes = decodeBase64(encodedText, monitor); return new String(decodedBytes, charset); }  static String decodeEncodedWords(String body, DecodeMonitor monitor); static String decodeEncodedWords(String body, Charset fallback); static String decodeEncodedWords(String body, DecodeMonitor monitor, Charset fallback);  }