set_best_encoding


Description:

public void set_best_encoding (BestencRequired required, BestencEncoding enctype)

Re-encode all message parts to conform with the required encoding rules.

If enctype is @7BIT, then all parts will be re-encoded into one of the 7bit transfer encodings. If enctype is @8BIT, all parts will be re-encoded to either a 7bit encoding or, if the part is 8bit text, allowed to stay 8bit. If enctype is BINARY, then binary parts will be encoded as binary and 8bit textual parts will be encoded as 8bit.

Parameters:

this

a MimeMessage object

required

a bitwise ORing of GET_ENCODING and GET_CHARSET

enctype

an encoding to enforce