Name

MultipartDataSource

Synopsis

This is a subinterface of javax.activation.DataSource that can contain multiple body parts. Objects implementing this interface preparse incoming multipart messages (such as from an IMAP mail server). Note that this interface is optional; if a provider does not support it, a regular DataSource object will be used instead. In that case, all data must be read via the InputStream object provided by the DataSource.

                  Type Of
public interface MultipartDataSource extends javax.activation.DataSource {
// Public Instance Methods
   public abstract BodyPart getBodyPart(
        int index) throws MessagingException;  
   public abstract int getCount();  
}

Passed To

Multipart.setMultipartDataSource()

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.