public class Multipart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORM_DATA |
static java.lang.String |
MIXED |
protected Vector |
parts
List of parts contained in this container
|
protected java.lang.String |
subType |
Constructor and Description |
---|
Multipart() |
Multipart(java.lang.String subType) |
Modifier and Type | Method and Description |
---|---|
void |
addPart(Part part)
Adds a MIME body part to this part container.
|
void |
writeTo(Stream stream)
Output an appropriately encoded bytestream to the given stream, which is typically used for sending.
|
protected Vector parts
protected java.lang.String subType
public static final java.lang.String MIXED
public static final java.lang.String FORM_DATA
public Multipart()
public Multipart(java.lang.String subType)
public void addPart(Part part)
part
- part to be added to this part container.public void writeTo(Stream stream) throws IOException, MessagingException
stream
- the output stream that will receive the encoded bytestreamIOException
- if an IO related exception occursMessagingException
- if an error occurs fetching the data to be written