createHeader (MIMEEntity - Java™)
Creates a MIME header and returns its representation as an object.
Note: This method is new with Release 6.
Defined in
Syntax
public MIMEHeader createHeader(String headerName)
throws NotesException
Parameters
String headerName
The name of the header.
Return value
MIMEHeader
The new MIME header.
Usage
The MIME header applies to the calling MIME entity.
The new MIME header has only a name. It has no value or parameters.
This method returns null if creation of the header exceeds a known limit for headers of the same name.
setContentFromBytes and setContentFromText generate Content-Type and Content-Transfer-Encoding headers. encodeContent generates Content-Transfer-Encoding headers.