javax.mail
Class BodyPart
java.lang.Object
|
+--javax.mail.BodyPart
- All Implemented Interfaces:
- Part
- Direct Known Subclasses:
- MimeBodyPart
- public abstract class BodyPart
- extends Object
- implements 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".
|
Field Summary |
protected Multipart |
parent
The Multipart object containing this BodyPart,
if known. |
|
Method Summary |
Multipart |
getParent()
Return the containing Multipart object,
or null if not known. |
(package private) void |
setParent(Multipart parent)
Set the parent of this BodyPart to be the specified
Multipart. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.mail.Part |
addHeader, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getSize, isMimeType, removeHeader, setContent, setContent, setDataHandler, setDescription, setDisposition, setFileName, setHeader, setText, writeTo |
parent
protected Multipart parent
- The
Multipart object containing this BodyPart,
if known.
- Since:
- JavaMail 1.1
BodyPart
public BodyPart()
getParent
public Multipart getParent()
- Return the containing
Multipart object,
or null if not known.
setParent
void setParent(Multipart parent)
- Set the parent of this
BodyPart to be the specified
Multipart. Normally called by Multipart's
addBodyPart method. parent may be
null if the BodyPart is being removed
from its containing Multipart.
- Since:
- JavaMail 1.1