Top Description Fields Constructors Methods
com.sun.mail.imap

public Class IMAPMultipartDataSource

extends MimePartDataSource
implements MultipartDataSource
Class Inheritance
All Implemented Interfaces
javax.mail.MultipartDataSource, javax.activation.DataSource
Imports
javax.mail.*, javax.mail.internet.*, com.sun.mail.imap.protocol.*, java.util.ArrayList, .List

This class
Author
John Mani

Field Summary

Modifier and TypeField and Description
private List<IMAPBodyPart>
Inherited from javax.mail.internet.MimePartDataSource:
part

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public BodyPart
getBodyPart(int
the index of the desired Part
index
)

Implements javax.mail.MultipartDataSource.getBodyPart.

Get the specified Part.
public int
getCount()

Implements javax.mail.MultipartDataSource.getCount.

Return the number of enclosed BodyPart objects.
Inherited from javax.mail.internet.MimePartDataSource:
getContentTypegetInputStreamgetMessageContextgetNamegetOutputStream

Field Detail

partsback to summary
private List<IMAPBodyPart> parts

Constructor Detail

IMAPMultipartDataSourceback to summary
protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, String sectionId, IMAPMessage msg)

Method Detail

getBodyPartback to summary
public BodyPart getBodyPart(int index) throws MessagingException

Implements javax.mail.MultipartDataSource.getBodyPart.

Doc from javax.mail.MultipartDataSource.getBodyPart.

Get the specified Part. Parts are numbered starting at 0.

Parameters
index:int

the index of the desired Part

Returns:BodyPart

the Part

Annotations
@Override
Exceptions
MessagingException:
for other failures
getCountback to summary
public int getCount()

Implements javax.mail.MultipartDataSource.getCount.

Doc from javax.mail.MultipartDataSource.getCount.

Return the number of enclosed BodyPart objects.

Returns:int

number of parts

Annotations
@Override