@Test public void testEncodeQuotedPrintableNonAsciiChars() throws Exception { String s = "7bit content with euro \u20AC symbol"; InputStream in = InputStreams.create(s, Charset.forName("iso-8859-15")); ByteArrayOutputStream out = new ByteArrayOutputStream(); EncoderUtil.encodeQBinary(in, out); String actual = new String(out.toByteArray(), "US-ASCII"); Assert.assertEquals("7bit=20content=20with=20euro=20=A4=20symbol", actual); }
public static void encodeQBinary(final InputStream in, final OutputStream out) throws IOException { QuotedPrintableOutputStream qpOut = new QuotedPrintableOutputStream(out, true); ContentUtil.copy(in, qpOut); qpOut.close(); }
EncoderUtil { public static void encodeQBinary(final InputStream in, final OutputStream out) throws IOException { QuotedPrintableOutputStream qpOut = new QuotedPrintableOutputStream(out, true); ContentUtil.copy(in, qpOut); qpOut.close(); } }
EncoderUtil { public static void encodeQBinary(final InputStream in, final OutputStream out) throws IOException { QuotedPrintableOutputStream qpOut = new QuotedPrintableOutputStream(out, true); ContentUtil.copy(in, qpOut); qpOut.close(); } private  EncoderUtil(); }
EncoderUtil { public static void encodeQBinary(final InputStream in, final OutputStream out) throws IOException { QuotedPrintableOutputStream qpOut = new QuotedPrintableOutputStream(out, true); ContentUtil.copy(in, qpOut); qpOut.close(); } private  EncoderUtil(); static String encodeAddressDisplayName(String displayName); static String encodeAddressLocalPart(String localPart); static String encodeHeaderParameter(String name, String value); static String encodeIfNecessary(String text, Usage usage,
            int usedCharacters); static boolean hasToBeEncoded(String text, int usedCharacters); static String encodeEncodedWord(String text, Usage usage); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters, Charset charset, Encoding encoding); static String encodeB(byte[] bytes); static String encodeQ(byte[] bytes, Usage usage); static void encodeQBinary(final InputStream in, final OutputStream out); static void encodeQ(final InputStream in, final OutputStream out); static void encodeB(final InputStream in, final OutputStream out); static boolean isToken(String str); }
EncoderUtil { public static void encodeQBinary(final InputStream in, final OutputStream out) throws IOException { QuotedPrintableOutputStream qpOut = new QuotedPrintableOutputStream(out, true); ContentUtil.copy(in, qpOut); qpOut.close(); } private  EncoderUtil(); static String encodeAddressDisplayName(String displayName); static String encodeAddressLocalPart(String localPart); static String encodeHeaderParameter(String name, String value); static String encodeIfNecessary(String text, Usage usage,
            int usedCharacters); static boolean hasToBeEncoded(String text, int usedCharacters); static String encodeEncodedWord(String text, Usage usage); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters, Charset charset, Encoding encoding); static String encodeB(byte[] bytes); static String encodeQ(byte[] bytes, Usage usage); static void encodeQBinary(final InputStream in, final OutputStream out); static void encodeQ(final InputStream in, final OutputStream out); static void encodeB(final InputStream in, final OutputStream out); static boolean isToken(String str);  }