|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.mail.MIMEFormatter
public class MIMEFormatter
Provides the functionality to transform a Message
object into
a string formatted as per RFC 2822/MIME ready to be passed to the transport
layer of the email application
Constructor Summary | |
---|---|
MIMEFormatter()
Initializes the fields containing a reference to the Message
object and to the name of the Folder containing this
Message object |
Method Summary | |
---|---|
java.lang.String |
format(Message mailmessage)
The values of the fields of the Message object referenced
by 'mailmessage' are analyzed to be estracted and formatted into a string
in the form foreseen by the RFC 2822/MIME specifications |
void |
format(Message mailmessage,
java.io.OutputStream os)
Writes the Message in RFC2822 format into the output stream. |
void |
format(Message mailmessage,
java.lang.StringBuffer out)
Writes the Message in RFC2822 format into the StringBuffer out. |
protected void |
formatBodyPartContent(BodyPart bodypart,
java.io.OutputStream os,
boolean encode)
|
protected void |
formatContent(Message mailmessage,
java.lang.String boundary,
java.lang.String contentTransferEncoding,
java.io.OutputStream os)
|
void |
formatOnlyMsgID(Message mailmessage,
java.lang.StringBuffer out)
Writes the MessageID in RFC2822 format into the StringBuffer out, e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIMEFormatter()
Message
object and to the name of the Folder
containing this
Message
object
Method Detail |
---|
public java.lang.String format(Message mailmessage)
Message
object referenced
by 'mailmessage' are analyzed to be estracted and formatted into a string
in the form foreseen by the RFC 2822/MIME specifications
public void format(Message mailmessage, java.lang.StringBuffer out)
public void format(Message mailmessage, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void formatOnlyMsgID(Message mailmessage, java.lang.StringBuffer out)
protected void formatContent(Message mailmessage, java.lang.String boundary, java.lang.String contentTransferEncoding, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
protected void formatBodyPartContent(BodyPart bodypart, java.io.OutputStream os, boolean encode) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |