Package org.apache.geronimo.mail.util

Examples of org.apache.geronimo.mail.util.QuotedPrintableEncoder


            if (encoding.equals("B")) {
                Base64.decode(encodedData, out);
            }
            // maybe quoted printable.
            else if (encoding.equals("Q")) {
                QuotedPrintableEncoder dataEncoder = new QuotedPrintableEncoder();
                dataEncoder.decodeWord(encodedData, out);
            }
            else {
                throw new UnsupportedEncodingException("Unknown RFC 2047 encoding: " + encoding);
            }
            // get the decoded byte data and convert into a string.
View Full Code Here


                // this may recurse on the encoding if the string is too long.  The left-most will not
                // get a segment delimiter
                encodeBase64(word, result, sizeLimit, charset, dataEncoder, true, SessionUtil.getBooleanProperty(MIME_FOLDENCODEDWORDS, false));
            }
            else {
                QuotedPrintableEncoder dataEncoder = new QuotedPrintableEncoder();
                encodeQuotedPrintable(word, result, sizeLimit, charset, dataEncoder, true,
                    SessionUtil.getBooleanProperty(MIME_FOLDENCODEDWORDS, false), encodingWord ? QP_WORD_SPECIALS : QP_TEXT_SPECIALS);
            }
            return result.toString();   
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.apache.geronimo.mail.util.QuotedPrintableEncoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.