encodeContent (MIMEEntity - Java™)
Encodes the non-header content of a MIME entity.
Note: This method is new with Release 6.
Defined in
Syntax
public void encodeContent(int encoding)
throws NotesException
Parameters
int encoding
- MIMEEntity.ENC_BASE64 -- Content-Transfer-Encoding is "base64"
- MIMEEntity.ENC_EXTENSION -- Content-Transfer-Encoding is user-defined
- MIMEEntity.ENC_IDENTITY_7BIT -- Content-Transfer-Encoding is "7bit"
- MIMEEntity.ENC_IDENTITY_8BIT -- Content-Transfer-Encoding is "8bit"
- MIMEEntity.ENC_IDENTITY_BINARY -- Content-Transfer-Encoding is "binary"
- MIMEEntity.ENC_NONE -- no Content-Transfer-Encoding header
- MIMEEntity.ENC_QUOTED_PRINTABLE -- Content-Transfer-Encoding is "quoted-printable"
Usage
This method affects the non-header content of a MIME entity and the Content-Transfer-Encoding header as defined in RFC-2045.
Actual encoding of the content occurs only for ENC_BASE64 and ENC_QUOTED_PRINTABLE. Other options change the header but not the content. ENC_QUOTED_PRINTABLE affects only "text" content.
If the content is already encoded, no action occurs. You must decode the content first.
All options except ENC_NONE and ENC_EXTENSION establish a Content-Transfer-Encoding header.
Use getEncoding to get the current encoding.