|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmo.mailmessager.utils.xml.MailMessagerXMLEngine
public class MailMessagerXMLEngine
Manages read and write access of MailAccounts to settings.xml. Operations are synchronized on static "lock" Object
MailAccount
Constructor Summary | |
---|---|
MailMessagerXMLEngine(java.lang.String xmlFilename)
Creates a MailMessagerXMLEngine instance connected to the supplied filename |
Method Summary | |
---|---|
static MailAccount[] |
getAccounts()
Parses settings.xml file into MailAccount[] array using DOMParser |
static long |
getMailPollTime()
Return Poll time saved on file as long. |
static void |
writeSettingsToDisk(MailAccount[] mail,
long polltime)
Writes the settings.xml configuration file from the supplied MailAccount array and poll time. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailMessagerXMLEngine(java.lang.String xmlFilename)
xmlFilename
- Name of the configuration file, e.g. settings.xmlMethod Detail |
---|
public static MailAccount[] getAccounts()
public static long getMailPollTime()
public static void writeSettingsToDisk(MailAccount[] mail, long polltime)
mail
- MailAccount array from which to create the settings.xml filepolltime
- Poll Time to save to settings.xml
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |