public class MultipartMessage
extends java.lang.Object
| Constructor and Description |
|---|
MultipartMessage() |
| Modifier and Type | Method and Description |
|---|---|
private static BinaryBody |
createImageBody(StorageBodyFactory bodyFactory,
java.awt.image.BufferedImage image)
Creates a binary part from the specified image.
|
static void |
main(java.lang.String[] args) |
private static java.awt.image.BufferedImage |
renderSampleImage()
Draws an image; unrelated to Mime4j.
|
private static Storage |
storeImage(StorageProvider storageProvider,
java.awt.image.BufferedImage image,
java.lang.String formatName)
Stores the specified image in a Storage object.
|
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprivate static BinaryBody createImageBody(StorageBodyFactory bodyFactory, java.awt.image.BufferedImage image) throws java.io.IOException
java.io.IOExceptionprivate static Storage storeImage(StorageProvider storageProvider, java.awt.image.BufferedImage image, java.lang.String formatName) throws java.io.IOException
java.io.IOExceptionprivate static java.awt.image.BufferedImage renderSampleImage()