public class IMAPMultipartDataSource extends MimePartDataSource implements MultipartDataSource
Modifier and Type | Field and Description |
---|---|
private java.util.List<IMAPBodyPart> |
parts |
part
Modifier | Constructor and Description |
---|---|
protected |
IMAPMultipartDataSource(MimePart part,
BODYSTRUCTURE[] bs,
java.lang.String sectionId,
IMAPMessage msg) |
Modifier and Type | Method and Description |
---|---|
BodyPart |
getBodyPart(int index)
Get the specified Part.
|
int |
getCount()
Return the number of enclosed BodyPart objects.
|
getContentType, getInputStream, getMessageContext, getName, getOutputStream
private java.util.List<IMAPBodyPart> parts
protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, java.lang.String sectionId, IMAPMessage msg)
public int getCount()
MultipartDataSource
getCount
in interface MultipartDataSource
public BodyPart getBodyPart(int index) throws MessagingException
MultipartDataSource
getBodyPart
in interface MultipartDataSource
index
- the index of the desired PartMessagingException
- for other failures