Uses of Class
jakarta.mail.BodyPart
Package
Description
The Jakarta Mail API
provides classes that model a mail system.
Classes specific to Internet mail systems.
-
Uses of BodyPart in jakarta.mail
Modifier and TypeMethodDescriptionMultipart.getBodyPart
(int index) Get the specified Part.MultipartDataSource.getBodyPart
(int index) Get the specified Part.Modifier and TypeMethodDescriptionvoid
Multipart.addBodyPart
(BodyPart part) Adds a Part to the multipart.void
Multipart.addBodyPart
(BodyPart part, int index) Adds a BodyPart at positionindex
.boolean
Multipart.removeBodyPart
(BodyPart part) Remove the specified part from the multipart message. -
Uses of BodyPart in jakarta.mail.internet
Modifier and TypeClassDescriptionclass
This class represents a MIME body part.class
A MimeBodyPart that handles data that has already been encoded.Modifier and TypeMethodDescriptionMimeMultipart.getBodyPart
(int index) Get the specified BodyPart.MimeMultipart.getBodyPart
(String CID) Get the MimeBodyPart referred to by the given ContentID (CID).Modifier and TypeMethodDescriptionvoid
MimeMultipart.addBodyPart
(BodyPart part) Adds a Part to the multipart.void
MimeMultipart.addBodyPart
(BodyPart part, int index) Adds a BodyPart at positionindex
.boolean
MimeMultipart.removeBodyPart
(BodyPart part) Remove the specified part from the multipart message.ModifierConstructorDescriptionMimeMultipart
(BodyPart... parts) Construct a MimeMultipart object of the default "mixed" subtype, and with the given body parts.MimeMultipart
(String subtype, BodyPart... parts) Construct a MimeMultipart object of the given subtype and with the given body parts.