Name

MimeMultipart

Synopsis

This is an implementation of the Multipart class used for multipart MIME messages. A MimeMultipart object can be filled with multiple MimePart objects and attached to a MimeMessage. All Multipart objects have a primary content type of “multipart.”

                  Type Of
public class MimeMultipart extends Multipart {
// Public Constructors
   public MimeMultipart();  
   public MimeMultipart(
        javax.activation.DataSource ds) throws MessagingException;  
   public MimeMultipart( String subtype);  
// Public Instance Methods
   public BodyPart getBodyPart(                                  // synchronized
        String CID) throws MessagingException;  
   public void setSubType(                                       // synchronized
        String subtype) throws MessagingException;  
// Public Methods Overriding Multipart
   public BodyPart getBodyPart(                                  // synchronized
        int index) throws MessagingException;  
   public int getCount() throws MessagingException;              // synchronized default:0
   public void writeTo(
        java.io.OutputStream os) throws IOExceptionMessagingException;  
// Protected Instance Methods
   protected InternetHeaders createInternetHeaders(              // 1.2
        java.io.InputStream is) throws MessagingException;  
   protected MimeBodyPart createMimeBodyPart(                    // 1.2
        java.io.InputStream is) throws MessagingException;  
   protected MimeBodyPart createMimeBodyPart(                    // 1.2
        InternetHeaders headers, 
        byte[] content) throws MessagingException;  
   protected void parse() throws MessagingException;             // synchronized, 1.2 protected ...

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.