com.sun.mail.imap
Class IMAPMultipartDataSource

java.lang.Object
  extended by javax.mail.internet.MimePartDataSource
      extended by com.sun.mail.imap.IMAPMultipartDataSource
All Implemented Interfaces:
javax.activation.DataSource, javax.mail.MessageAware, javax.mail.MultipartDataSource

public class IMAPMultipartDataSource
extends javax.mail.internet.MimePartDataSource
implements javax.mail.MultipartDataSource

This class


Field Summary
 
Fields inherited from class javax.mail.internet.MimePartDataSource
part
 
Constructor Summary
protected IMAPMultipartDataSource(javax.mail.internet.MimePart part, BODYSTRUCTURE[] bs, java.lang.String sectionId, IMAPMessage msg)
           
 
Method Summary
 javax.mail.BodyPart getBodyPart(int index)
          Get the specified Part.
 int getCount()
          Return the number of enclosed BodyPart objects.
 
Methods inherited from class javax.mail.internet.MimePartDataSource
getContentType, getInputStream, getMessageContext, getName, getOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.activation.DataSource
getContentType, getInputStream, getName, getOutputStream
 

Constructor Detail

IMAPMultipartDataSource

protected IMAPMultipartDataSource(javax.mail.internet.MimePart part,
                                  BODYSTRUCTURE[] bs,
                                  java.lang.String sectionId,
                                  IMAPMessage msg)
Method Detail

getCount

public int getCount()
Description copied from interface: javax.mail.MultipartDataSource
Return the number of enclosed BodyPart objects.

Specified by:
getCount in interface javax.mail.MultipartDataSource
Returns:
number of parts

getBodyPart

public javax.mail.BodyPart getBodyPart(int index)
                                throws javax.mail.MessagingException
Description copied from interface: javax.mail.MultipartDataSource
Get the specified Part. Parts are numbered starting at 0.

Specified by:
getBodyPart in interface javax.mail.MultipartDataSource
Parameters:
index - the index of the desired Part
Returns:
the Part
Throws:
javax.mail.MessagingException