3 // FEATURE: MIME RFC2045, 2046, 2049
5 /** This class contains logic for encoding and decoding MIME multipart messages */
7 public static class QuotedPrintable {
9 public static String decode(String s, boolean lax) {
11 // =XX -> hex representation, must be uppercase
12 // 9, 32, 33-60, 62-126 can be literal
13 // 9, 32 at end-of-line must get encoded
14 // trailing whitespace must be deleted when decoding
15 // =\n = soft line break
16 // lines cannot be more than 76 chars long
19 // lax is used for RFC2047 headers; removes restrictions on which chars you can encode