Package totalcross.net.mail
Class Multipart
- java.lang.Object
-
- totalcross.net.mail.Multipart
-
public class Multipart extends java.lang.ObjectMultipart is a container that holds multiple body parts.- Since:
- TotalCross 1.13
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPart(Part part)Adds a MIME body part to this part container.voidwriteTo(Stream stream)Output an appropriately encoded bytestream to the given stream, which is typically used for sending.
-
-
-
Field Detail
-
parts
protected Vector parts
List of parts contained in this container
-
subType
protected java.lang.String subType
-
MIXED
public static final java.lang.String MIXED
- See Also:
- Constant Field Values
-
FORM_DATA
public static final java.lang.String FORM_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
addPart
public void addPart(Part part)
Adds a MIME body part to this part container.- Parameters:
part- part to be added to this part container.- Since:
- TotalCross 1.13
-
writeTo
public void writeTo(Stream stream) throws IOException, MessagingException
Output an appropriately encoded bytestream to the given stream, which is typically used for sending.- Parameters:
stream- the output stream that will receive the encoded bytestream- Throws:
IOException- if an IO related exception occursMessagingException- if an error occurs fetching the data to be written- Since:
- TotalCross 1.13
-
-