Save This Page
Home » glassfish-v2ur2-b04-src » javax » mail » [javadoc | source]
javax.mail
public interface: MultipartDataSource [javadoc | source]

All Implemented Interfaces:
    DataSource

MultipartDataSource is a DataSource that contains body parts. This allows "mail aware" DataContentHandlers to be implemented more efficiently by being aware of such DataSources and using the appropriate methods to access BodyParts.

Note that the data of a MultipartDataSource is also available as an input stream.

This interface will typically be implemented by providers that preparse multipart bodies, for example an IMAP provider.

Method from javax.mail.MultipartDataSource Summary:
getBodyPart,   getCount
Method from javax.mail.MultipartDataSource Detail:
 public BodyPart getBodyPart(int index) throws MessagingException
    Get the specified Part. Parts are numbered starting at 0.
 public int getCount()
    Return the number of enclosed BodyPart objects.