接口 javax.mail.Part
的使用

使用 Part 的软件包
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. 
com.sun.mail.pop3 A POP3 protocol provider for the JavaMail API that provides access to a POP3 message store. 
com.sun.mail.smtp An SMTP protocol provider for the JavaMail API that provides access to an SMTP server. 
javax.mail The JavaMailTM API provides classes that model a mail system. 
javax.mail.internet Classes specific to Internet mail systems. 
 

com.sun.mail.dsnPart 的使用
 

实现 Partcom.sun.mail.dsn 中的类
 class MessageHeaders
          A special MimeMessage object that contains only message headers, no content.
 

com.sun.mail.imapPart 的使用
 

实现 Partcom.sun.mail.imap 中的类
 class IMAPBodyPart
          This class
 class IMAPMessage
          This class implements an IMAPMessage object.
 class IMAPNestedMessage
          This class implements a nested IMAP message
 

com.sun.mail.pop3Part 的使用
 

实现 Partcom.sun.mail.pop3 中的类
 class POP3Message
          A POP3 Message.
 

com.sun.mail.smtpPart 的使用
 

实现 Partcom.sun.mail.smtp 中的类
 class SMTPMessage
          This class is a specialization of the MimeMessage class that allows you to specify various SMTP options and parameters that will be used when this message is sent over SMTP.
 

javax.mailPart 的使用
 

实现 Partjavax.mail 中的类
 class BodyPart
          This class models a Part that is contained within a Multipart.
 class Message
          This class models an email message.
 

声明为 Partjavax.mail 中的字段
protected  Part Multipart.parent
          The Part containing this Multipart, if known.
 

返回 Partjavax.mail 中的方法
 Part Multipart.getParent()
          Return the Part that contains this Multipart object, or null if not known.
 Part MessageContext.getPart()
          Return the Part that contains the content.
 

参数类型为 Partjavax.mail 中的方法
 void Multipart.setParent(Part parent)
          Set the parent of this Multipart to be the specified Part.
 

参数类型为 Partjavax.mail 中的构造方法
MessageContext(Part part)
          Create a MessageContext object describing the context of the given Part.
 

javax.mail.internetPart 的使用
 

javax.mail.internetPart 的子接口
 interface MimePart
          The MimePart interface models an Entity as defined by MIME (RFC2045, Section 2.4).
 

实现 Partjavax.mail.internet 中的类
 class MimeBodyPart
          This class represents a MIME body part.
 class MimeMessage
          This class represents a MIME style email message.
 class PreencodedMimeBodyPart
          A MimeBodyPart that handles data that has already been encoded.
 



Copyright © 2013. All Rights Reserved.