com.sun.mail.imap
类 IMAPMultipartDataSource

java.lang.Object
  继承者 javax.mail.internet.MimePartDataSource
      继承者 com.sun.mail.imap.IMAPMultipartDataSource
所有已实现的接口:
DataSource, MessageAware, MultipartDataSource

public class IMAPMultipartDataSource
extends MimePartDataSource
implements MultipartDataSource

This class

版本:
1.7, 07/05/04
作者:
John Mani

字段摘要
 
从类 javax.mail.internet.MimePartDataSource 继承的字段
part
 
构造方法摘要
protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, String sectionId, IMAPMessage msg)
           
 
方法摘要
 BodyPart getBodyPart(int index)
          Get the specified Part.
 int getCount()
          Return the number of enclosed BodyPart objects.
 
从类 javax.mail.internet.MimePartDataSource 继承的方法
getContentType, getInputStream, getMessageContext, getName, getOutputStream
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 javax.activation.DataSource 继承的方法
getContentType, getInputStream, getName, getOutputStream
 

构造方法详细信息

IMAPMultipartDataSource

protected IMAPMultipartDataSource(MimePart part,
                                  BODYSTRUCTURE[] bs,
                                  String sectionId,
                                  IMAPMessage msg)
方法详细信息

getCount

public int getCount()
从接口 MultipartDataSource 复制的描述
Return the number of enclosed BodyPart objects.

指定者:
接口 MultipartDataSource 中的 getCount
返回:
number of parts

getBodyPart

public BodyPart getBodyPart(int index)
                     throws MessagingException
从接口 MultipartDataSource 复制的描述
Get the specified Part. Parts are numbered starting at 0.

指定者:
接口 MultipartDataSource 中的 getBodyPart
参数:
index - the index of the desired Part
返回:
the Part
抛出:
MessagingException


Copyright © 2013. All Rights Reserved.