closeMIMEEntities (Document - Java)

Closes MIME processing associated with items of a specified name.

Note: This method is new with Release 6.

Defined in

Document

Syntax

public boolean closeMIMEEntities()
    throws NotesException
public boolean closeMIMEEntities(boolean savechanges)
    throws NotesException
public boolean closeMIMEEntities(boolean savechanges, String entityitemname)
    throws NotesException

Parameters

boolean savechanges

Whether MIME entity content and header changes are saved in the associated in-memory items.

  • true retains changes to MIME entity content and headers.
  • false (default) discards changes to MIME entity content and headers.
String entityitemname

The name of the item or items associated with the MIME processing. "Body" is the default.

Return value

  • true if MIME processing for the items closes successfully
  • false if MIME processing for the items does not close successfully

Usage

This method allows you terminate the scope of MIME processing so you can safely work on items through the item interface. Do not work on items directly without first closing MIME processing.

Saving the MIME entity content and headers with this method is an in-memory process. To save document content permanently, you must call save in NotesDocument.

This method returns false if no MIME processing is associated with items of the specified name.

Example