类 javax.mail.BodyPart
的使用

使用 BodyPart 的软件包
com.sun.mail.dsn Support for creating and parsing Delivery Status Notifications. 
com.sun.mail.imap An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store. 
javax.mail The JavaMailTM API provides classes that model a mail system. 
javax.mail.internet Classes specific to Internet mail systems. 
 

com.sun.mail.dsnBodyPart 的使用
 

参数类型为 BodyPartcom.sun.mail.dsn 中的方法
 void MultipartReport.addBodyPart(BodyPart part)
          Adds a Part to the multipart.
 void MultipartReport.addBodyPart(BodyPart part, int index)
          Adds a BodyPart at position index.
 boolean MultipartReport.removeBodyPart(BodyPart part)
          Remove the specified part from the multipart message.
 

com.sun.mail.imapBodyPart 的使用
 

com.sun.mail.imapBodyPart 的子类
 class IMAPBodyPart
          This class
 

返回 BodyPartcom.sun.mail.imap 中的方法
 BodyPart IMAPMultipartDataSource.getBodyPart(int index)
           
 

javax.mailBodyPart 的使用
 

返回 BodyPartjavax.mail 中的方法
 BodyPart MultipartDataSource.getBodyPart(int index)
          Get the specified Part.
 BodyPart Multipart.getBodyPart(int index)
          Get the specified Part.
 

参数类型为 BodyPartjavax.mail 中的方法
 void Multipart.addBodyPart(BodyPart part)
          Adds a Part to the multipart.
 void Multipart.addBodyPart(BodyPart part, int index)
          Adds a BodyPart at position index.
 boolean Multipart.removeBodyPart(BodyPart part)
          Remove the specified part from the multipart message.
 

javax.mail.internetBodyPart 的使用
 

javax.mail.internetBodyPart 的子类
 class MimeBodyPart
          This class represents a MIME body part.
 class PreencodedMimeBodyPart
          A MimeBodyPart that handles data that has already been encoded.
 

返回 BodyPartjavax.mail.internet 中的方法
 BodyPart MimeMultipart.getBodyPart(int index)
          Get the specified BodyPart.
 BodyPart MimeMultipart.getBodyPart(String CID)
          Get the MimeBodyPart referred to by the given ContentID (CID).
 

参数类型为 BodyPartjavax.mail.internet 中的方法
 void MimeMultipart.addBodyPart(BodyPart part)
          Adds a Part to the multipart.
 void MimeMultipart.addBodyPart(BodyPart part, int index)
          Adds a BodyPart at position index.
 boolean MimeMultipart.removeBodyPart(BodyPart part)
          Remove the specified part from the multipart message.
 



Copyright © 2013. All Rights Reserved.