|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.mail.MIMEProcessor
public class MIMEProcessor
An object of this class is a parser that reads a string representing an email
message formatted as per RFC 2822 and MIME (RFC 2045, 2046 etc.) and returns
a Message
object ready to be stored in the device store (the
latter represented by implementations of the Store
interface)
Constructor Summary | |
---|---|
MIMEProcessor()
|
Method Summary | |
---|---|
Message |
parseMailMessage(java.lang.String rfc2822)
This method performs different operations concerning the parsing of a text email message formatted as per RFC 2822 and MIME specifications in order to build a Message object ready to be serialized and
stored into the device's persistent store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIMEProcessor()
Method Detail |
---|
public Message parseMailMessage(java.lang.String rfc2822) throws MailException
Message
object ready to be serialized and
stored into the device's persistent store. The first parsing operation consists in the extraction of every single line from the email message and in building an array of strings with each extracted line.
The array is then used to extract further information (like folded lines
or empty header attributes) and to build a hash table containing the
elements finally used to build the real Message
object to
be stored in the persistent store of the device
rfc2822
- A string containing the entire email message coming from a
server and formatted as per RFC 2822 and MIME specifications
Message
object build with the information
retrieved from the original text representation of the email
message
MailException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |