addValText (MIMEHeader - Java)

Appends encoded text to a header value.

Defined in



public boolean addValText(String valueText)
     throws NotesException
public boolean addValText(String valueText, String charSet)
     throws NotesException


String valueText

String. The text to be appended. If the header has no value, this text becomes the complete value.

String charSet

String. A character set acceptable to RFC-2047.

Return value

  • true if the header value can be saved as a MIME header upon
  • false if the header value cannot be saved as a MIME header upon


If valueText contains only US-ASCII characters, no encoding occurs.

If valueText contains non-US-ASCII characters and a character set is specified, encoding occurs according to RFC-2047

You must call to commit this change.