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
public class IMAPMultipartDataSource
- extends MimePartDataSource
- implements MultipartDataSource
This class
- Author:
- John Mani
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 |
IMAPMultipartDataSource
protected IMAPMultipartDataSource(MimePart part,
BODYSTRUCTURE[] bs,
String sectionId,
IMAPMessage msg)
getCount
public int getCount()
- Description copied from interface:
MultipartDataSource
- Return the number of enclosed BodyPart objects.
- Specified by:
getCount
in interface MultipartDataSource
- 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 interface MultipartDataSource
- Parameters:
index
- the index of the desired Part
- Returns:
- the Part
- Throws:
MessagingException
Copyright © 2011 Sun Microsystems, Inc.. All Rights Reserved.