Encoding (MIMEEntity - Java)

Read-only. Current® encoding for the non-header content of a MIME entity.

Note: This property is new with Release 6.

Defined in

MIMEEntity

Data type

int

Syntax

public int getEncoding( )
     throws NotesException

Legal values

  • 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

The Content-Transfer-Encoding header specifies an entity's encoding as defined in RFC-2045.

Use decodeContent and encodeContent to change an entity's encoding.

Example