Package javax.mail
Class BodyPart
java.lang.Object
javax.mail.BodyPart
- All Implemented Interfaces:
Part
- Direct Known Subclasses:
MimeBodyPart
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
Fields inherited from interface javax.mail.Part
ATTACHMENT, INLINE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, 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
-
Constructor Details
-
BodyPart
public BodyPart()
-
-
Method Details
-
getParent
Return the containingMultipart
object, ornull
if not known.- Returns:
- the parent Multipart
-