BodyPart (Java EE 5)

Java EE API


javax.mail Class BodyPart

java.lang.Object
  extended by javax.mail.BodyPart
All Implemented Interfaces:
Part
Direct Known Subclasses:
MimeBodyPart

public abstract class BodyPart
extends Object
implements Part

Implements: Part
Extended by: MimeBodyPart

此类模拟包含在 Multipart 中的一个 Part。这是一个抽象类。子类提供实际实现。

BodyPart 实现 Part 接口。因此,它包含一个属性集合和一个“内容”。

英文文档:

This class models a Part that is contained within a Multipart. This is an abstract class. Subclasses provide actual implementations.

BodyPart implements the Part interface. Thus, it contains a set of attributes and a "content".

Author:
John Mani, Bill Shannon

Field Summary
protected  Multipart
 
Fields inherited from interface javax.mail.Part
 
Constructor Summary
 
Method Summary
 Multipart
 
Methods inherited from class java.lang.Object
 
Methods inherited from interface javax.mail.Part
 

Field Detail

英文文档:

parent

protected Multipart parent
The Multipart object containing this BodyPart, if known.

Since:
JavaMail 1.1

Constructor Detail

public BodyPart()
英文文档:

BodyPart

public BodyPart()
Method Detail

public Multipart getParent()
返回包含此 BodyPart 的 Multipart 对象;如果该对象未知,则返回 null
英文文档:

getParent

public Multipart getParent()
Return the containing Multipart object, or null if not known.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!