|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.mail.util.MimeMessageUtils
public final class MimeMessageUtils
Static helper methods.
| Method Summary | |
|---|---|
static MimeMessage |
createMimeMessage(Session session,
byte[] source)
Create a MimeMessage. |
static MimeMessage |
createMimeMessage(Session session,
File source)
Create a MimeMessage. |
static MimeMessage |
createMimeMessage(Session session,
InputStream source)
Create a MimeMessage. |
static MimeMessage |
createMimeMessage(Session session,
String source)
Create a MimeMessage using the platform's default character encoding. |
static void |
writeMimeMessage(MimeMessage mimeMessage,
File resultFile)
Convenience method to write a MimeMessage into a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MimeMessage createMimeMessage(Session session,
byte[] source)
throws MessagingException,
IOException
session - the mail sessionsource - the input data
MessagingException - creating the MimeMessage failed
IOException - creating the MimeMessage failed
public static MimeMessage createMimeMessage(Session session,
File source)
throws MessagingException,
IOException
session - the mail sessionsource - the input data
MessagingException - creating the MimeMessage failed
IOException - creating the MimeMessage failed
public static MimeMessage createMimeMessage(Session session,
InputStream source)
throws MessagingException
session - the mail sessionsource - the input data
MessagingException - creating the MimeMessage failed
public static MimeMessage createMimeMessage(Session session,
String source)
throws MessagingException,
IOException
session - the mail sessionsource - the input data
MessagingException - creating the MimeMessage failed
IOException - creating the MimeMessage failed
public static void writeMimeMessage(MimeMessage mimeMessage,
File resultFile)
throws MessagingException,
IOException
mimeMessage - the MimeMessage to writeresultFile - the file containing the MimeMessgae
MessagingException - accessing MimeMessage failed
IOException - writing the MimeMessage failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||