- java.lang.Object
-
- javax.mail.internet.MimePartDataSource
-
- com.sun.mail.imap.IMAPMultipartDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
,MessageAware
,MultipartDataSource
public class IMAPMultipartDataSource extends MimePartDataSource implements MultipartDataSource
This class- Author:
- John Mani
-
-
Field Summary
-
Fields inherited from class javax.mail.internet.MimePartDataSource
part
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, java.lang.String sectionId, IMAPMessage msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
IMAPMultipartDataSource
protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, java.lang.String sectionId, IMAPMessage msg)
-
-
Method Detail
-
getCount
public int getCount()
Description copied from interface:MultipartDataSource
Return the number of enclosed BodyPart objects.- Specified by:
getCount
in interfaceMultipartDataSource
- Returns:
- number of parts
-
getBodyPart
public BodyPart getBodyPart(int index) throws MessagingException
Description copied from interface:MultipartDataSource
Get the specified Part. Parts are numbered starting at 0.- Specified by:
getBodyPart
in interfaceMultipartDataSource
- Parameters:
index
- the index of the desired Part- Returns:
- the Part
- Throws:
MessagingException
- for other failures
-
-