return out;
if (encoding == null) { return out; }  encoding = encoding.toLowerCase();   if (encoding.equals("binary") || encoding.equals("7bit") || encoding.equals("8bit")) { return out; } else if (encoding.equals("base64")) { return new Base64EncoderStream(out); }  else if (encoding.equals("uuencode") || encoding.equals("x-uuencode") || encoding.equals("x-uue")) { return new UUEncoderStream(out); } else if (encoding.equals("quoted-printable")) { return new QuotedPrintableEncoderStream(out); } else { throw new MessagingException("Unknown encoding " + encoding); }
    public static OutputStream encode(OutputStream out, String encoding) throws MessagingException {        // TODO - take account of encoding        return out;    }