|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmail.MailArchive
public class MailArchive
The MailArchive is used to store received mails. Mails can be saved in a tree-like structure. TODO: moving of mails, auto-correction of property-files, if mails changed
Nested Class Summary | |
---|---|
class |
MailArchive.Folder
represents a folder |
class |
MailArchive.MailEntry
an Entry of a Mail in the Archive, the Mail can have an have already been decrypted, then the decrypted mail is stored here, too. |
Field Summary | |
---|---|
private Communicator |
comm
|
private EncSupply |
enc
needed to encrypt received mails, so other can't read the mails |
private static java.lang.String |
ID_LIST
|
private MailArchive.Folder |
inbox
the inbox, childfolder of root |
private java.io.File |
inboxDir
the directory of the inbox on the harddisk |
private static java.lang.String |
PROP_LIST
|
private MailArchive.Folder |
root
the root folder |
private User |
user
the user, that owns the MailArchive |
Constructor Summary | |
---|---|
MailArchive(java.io.File basedir,
User user,
EncSupply enc)
initializes, if necessary creates the MailArchive. |
Method Summary | |
---|---|
MailArchive.Folder |
getRoot()
returns the root folder of the archive |
Mail |
load(java.io.File f)
loads a mail from a file |
MailArchive.MailEntry |
store(Mail m)
stores a mail in the Inbox of the Archive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ID_LIST
private static final java.lang.String PROP_LIST
private MailArchive.Folder root
private MailArchive.Folder inbox
private java.io.File inboxDir
private EncSupply enc
private Communicator comm
private User user
Constructor Detail |
---|
public MailArchive(java.io.File basedir, User user, EncSupply enc)
basedir
- user
- enc
- Method Detail |
---|
public MailArchive.MailEntry store(Mail m) throws SavingException
m
-
SavingException
public Mail load(java.io.File f) throws org.xml.sax.SAXException, java.io.IOException, MailBuildException
f
-
org.xml.sax.SAXException
java.io.IOException
MailBuildException
public MailArchive.Folder getRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |