com.funambol.mail
Class MIMEFormatter

java.lang.Object
  extended by com.funambol.mail.MIMEFormatter

public class MIMEFormatter
extends java.lang.Object

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.lang.StringBuffer out)
          Writes the Message in RFC2822 format into the StringBuffer out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIMEFormatter

public MIMEFormatter()
Initializes the fields containing a reference to the Message object and to the name of the Folder containing this Message object

Method Detail

format

public 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


format

public void format(Message mailmessage,
                   java.lang.StringBuffer out)
Writes the Message in RFC2822 format into the StringBuffer out.



Copyright © 2006 Funambol.