System.out.println(decodeRFC2231("text/plain; charset=US-ASCII;\r\n\tFormat=Flowed   DelSp=Yes\r\n")); System.out.println(decodeRFC2231("   \n  attachment;\n filename*=UTF-8''%E3%82%BD%E3%83%AB%E3%83%86%E3%82%A3%E3%83%AC%E3%82%A4.rtf\n  \n ")); System.out.println(decodeRFC2231("application/x-stuff; title*0*=us-ascii'en'This%20is%20even%20more%20; title*1*=%2A%2A%2Afun%2A%2A%2A%20; title*2=\"isn't it!\"\n")); System.out.println(decodeRFC2231("multipart/mixed; charset=us-ascii;\n foo=\n  boundary=\"---\" \n")); System.out.println(decodeRFC2231("message/external-body; access-type=URL;\n URL*0=\"ftp: System.out.println(decodeRFC2231("application/x-stuff;\n\ttitle*=us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A"));
    public static void main(String[] args) throws UnsupportedEncodingException {        String s = URLDecoder.decode("Zimbra%20&#26085;&#26412;&#35486;&#21270;&#12398;&#32771;&#24942;&#28857;.txt", "utf-8");        System.out.println(s);        System.out.println(expandNumericCharacterReferences("Zimbra%20&#26085;&#26412;&#35486;&#21270;&#12398;&#32771;&#24942;&#28857;.txt&#x40;&;&#;&#x;&#&#3876;&#55"));        System.out.println(decodeRFC2231("text/plain; charset=US-ASCII;\r\n\tFormat=Flowed   DelSp=Yes\r\n"));        System.out.println(decodeRFC2231("   \n  attachment;\n filename*=UTF-8''%E3%82%BD%E3%83%AB%E3%83%86%E3%82%A3%E3%83%AC%E3%82%A4.rtf\n  \n "));        System.out.println(decodeRFC2231("application/x-stuff; title*0*=us-ascii'en'This%20is%20even%20more%20; title*1*=%2A%2A%2Afun%2A%2A%2A%20; title*2=\"isn't it!\"\n"));        System.out.println(decodeRFC2231("multipart/mixed; charset=us-ascii;\n foo=\n  boundary=\"---\" \n"));        System.out.println(decodeRFC2231("message/external-body; access-type=URL;\n URL*0=\"ftp://\";\n URL*1=\"cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n"));        System.out.println(decodeRFC2231("application/x-stuff;\n\ttitle*=us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A"));    }