com.funambol.email.pdi.parser
Class XMLMailParser

java.lang.Object
  extended bycom.funambol.foundation.pdi.parser.XMLParser
      extended bycom.funambol.email.pdi.parser.XMLMailParser
All Implemented Interfaces:
IEMAIL

public class XMLMailParser
extends com.funambol.foundation.pdi.parser.XMLParser
implements IEMAIL

This objects represents a list of Mail property parameters. The list is based on the informations contained in a list of parser tokens.


Field Summary
 
Fields inherited from class com.funambol.foundation.pdi.parser.XMLParser
root, TAG_NAME_CONTACT, TAG_NAME_EVENT_APPOINTMENT, TAG_NAME_EVENT_CALENDAR
 
Fields inherited from interface com.funambol.email.pdi.mail.IEMAIL
CREATED, DELETED, EMAILITEM, FLAGGED, FORWARDED, MODIFIED, READ, RECEIVED, REPLIED, ROOT_TAG
 
Constructor Summary
XMLMailParser(java.io.InputStream xmlStream)
          Parse the XML doc the XML parser for a VCard or ICalendar object.
 
Method Summary
 Email parse()
          Parse the xml document and returns a iCalendar object.
 Email parse(Email mail)
          Parse the xml document and returns a iCalendar object.
 
Methods inherited from class com.funambol.foundation.pdi.parser.XMLParser
getIntNodeContent, getIntWrapNodeContent, getNodeContent, getShortNodeContent, getShortWrapNodeContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMailParser

public XMLMailParser(java.io.InputStream xmlStream)
              throws org.xml.sax.SAXException,
                     java.io.IOException
Parse the XML doc the XML parser for a VCard or ICalendar object.

Parameters:
xmlStream - InputStream. the input stream in XML format
Throws:
org.xml.sax.SAXException
java.io.IOException
Method Detail

parse

public Email parse()
            throws org.xml.sax.SAXException
Parse the xml document and returns a iCalendar object.

Returns:
Email. event the object Event
Throws:
org.xml.sax.SAXException

parse

public Email parse(Email mail)
            throws org.xml.sax.SAXException
Parse the xml document and returns a iCalendar object.

Parameters:
mail - Email
Returns:
email the object Email.
Throws:
org.xml.sax.SAXException


Copyright © 2003-2006 Funambol.