getNextEntity (MIMEEntity - Java)

Returns the MIME entity immediately following the current MIME entity within a multipart entity.

Note: This method is new with Release 6.

Defined in

MIMEEntity

Syntax

public MIMEEntity getNextEntity( ) 
     throws NotesException
public MIMEEntity getNextEntity(int search) 
     throws NotesException

Parameters

int search
  • MIMEEntity.SEARCH_DEPTH (default) searches for child entities first then siblings.
  • MIMEEntity.SEARCH_BREADTH searches for siblings first then child entries.

Return value

MIMEEntity

The next MIME entity or null.

Example