public class JavaMailMultipartWriterFactory extends java.lang.Object implements MultipartWriterFactory
MultipartWriter implementation.| Modifier and Type | Field and Description |
|---|---|
static MultipartWriterFactory |
INSTANCE |
| Constructor and Description |
|---|
JavaMailMultipartWriterFactory() |
| Modifier and Type | Method and Description |
|---|---|
MultipartWriter |
createMultipartWriter(java.io.OutputStream out,
java.lang.String boundary)
Create a new
MultipartWriter instance that writes a MIME multipart package to a given
output stream. |
public static final MultipartWriterFactory INSTANCE
public MultipartWriter createMultipartWriter(java.io.OutputStream out, java.lang.String boundary)
MultipartWriterFactoryMultipartWriter instance that writes a MIME multipart package to a given
output stream.createMultipartWriter in interface MultipartWriterFactoryout - The output stream to write the MIME package to.boundary - The MIME boundary to use. The value should not include the leading dashes, i.e. it
is the same value as used in the boundary content type parameter.