// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package test;

import java.io.*;

import javax.mail.*;
import javax.mail.internet.*;

public class QP {
    public static void main(String[] args) {
        String s = "=E6=F8=E5=C6=D8=C5";
        try {
            InputStream is = MimeUtility.decode(new ByteArrayInputStream(s.getBytes()),"quoted-printable");
            byte[] b = new byte[6];
            is.read(b);
            System.out.println(new String(b, "ISO-8859-1"));
        } catch (IOException e) {
            e.printStackTrace();
        } catch (MessagingException e) {
            e.printStackTrace();
        }
    }
}
