Java javax.mail.internet MimeMultipart fields, constructors, methods, implement or subclass

Example usage for Java javax.mail.internet MimeMultipart fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail.internet MimeMultipart.

The text is from its open source code.

Subclass

javax.mail.internet.MimeMultipart has subclasses.
Click this link to see all its subclasses.

Constructor

MimeMultipart()
Default constructor.
MimeMultipart(String subtype)
Construct a MimeMultipart object of the given subtype.
MimeMultipart(BodyPart... parts)
Construct a MimeMultipart object of the default "mixed" subtype, and with the given body parts.
MimeMultipart(DataSource ds)
Constructs a MimeMultipart object and its bodyparts from the given DataSource.

Method

voidaddBodyPart(BodyPart part)
Adds a Part to the multipart.
voidaddBodyPart(BodyPart part, int index)
Adds a BodyPart at position index.
BodyPartgetBodyPart(int index)
Get the specified BodyPart.
BodyPartgetBodyPart(String CID)
Get the MimeBodyPart referred to by the given ContentID (CID).
StringgetContentType()
Return the content-type of this Multipart.
intgetCount()
Return the number of enclosed BodyPart objects.
StringgetPreamble()
Get the preamble text, if any, that appears before the first body part of this multipart.
voidsetPreamble(String preamble)
Set the preamble text to be included before the first body part.
voidsetSubType(String subtype)
Set the subtype.
voidwriteTo(OutputStream os)
Iterates through all the parts and outputs each MIME part separated by a boundary.