Package com.sun.mail.imap
Class IMAPMultipartDataSource
java.lang.Object
javax.mail.internet.MimePartDataSource
com.sun.mail.imap.IMAPMultipartDataSource
- All Implemented Interfaces:
javax.activation.DataSource,MessageAware,MultipartDataSource
This class
- Author:
- John Mani
-
Field Summary
Fields inherited from class javax.mail.internet.MimePartDataSource
part -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, String sectionId, IMAPMessage msg) -
Method Summary
Modifier and TypeMethodDescriptiongetBodyPart(int index) Get the specified Part.intgetCount()Return the number of enclosed BodyPart objects.Methods inherited from class javax.mail.internet.MimePartDataSource
getContentType, getInputStream, getMessageContext, getName, getOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.activation.DataSource
getContentType, getInputStream, getName, getOutputStream
-
Constructor Details
-
IMAPMultipartDataSource
protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, String sectionId, IMAPMessage msg)
-
-
Method Details
-
getCount
public int getCount()Description copied from interface:MultipartDataSourceReturn the number of enclosed BodyPart objects.- Specified by:
getCountin interfaceMultipartDataSource- Returns:
- number of parts
-
getBodyPart
Description copied from interface:MultipartDataSourceGet the specified Part. Parts are numbered starting at 0.- Specified by:
getBodyPartin interfaceMultipartDataSource- Parameters:
index- the index of the desired Part- Returns:
- the Part
- Throws:
MessagingException- for other failures
-