|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.calfater.mailcarbon.helper.FolderHelper
public class FolderHelper
Tools for managing Folders.
| Constructor Summary | |
|---|---|
FolderHelper()
|
|
| Method Summary | |
|---|---|
static void |
addMessage(javax.mail.Folder folder,
javax.mail.Message message)
Add a new message into an already opened folder. |
static void |
createFolder(javax.mail.Store store,
java.lang.String folderName)
Create a new folder inside the store. |
static void |
delete(javax.mail.Folder folder)
Delete this Folder. |
static java.util.ArrayList<javax.mail.Folder> |
getFolderList(javax.mail.Folder folder)
Get all folders inside a specific folder. |
static java.util.ArrayList<javax.mail.Message> |
getMessages(javax.mail.Folder folder)
Copy all messages from a source server folder to a backup server folder. |
static int |
messageCount(javax.mail.Folder folder)
Get the number of messages inside a folder. |
static java.lang.String |
truncate(java.lang.String str,
int length)
Truncate the length of a folder name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderHelper()
| Method Detail |
|---|
public static java.util.ArrayList<javax.mail.Folder> getFolderList(javax.mail.Folder folder)
throws javax.mail.MessagingException
folder - The parent folder.
javax.mail.MessagingException
public static int messageCount(javax.mail.Folder folder)
throws javax.mail.MessagingException
folder - The folder.
javax.mail.MessagingException
public static java.util.ArrayList<javax.mail.Message> getMessages(javax.mail.Folder folder)
throws javax.mail.MessagingException
folder - A source Folder.
javax.mail.MessagingException
public static java.lang.String truncate(java.lang.String str,
int length)
str - The folder name.length - The new size.
public static void createFolder(javax.mail.Store store,
java.lang.String folderName)
throws javax.mail.MessagingException
store - An opened Store.folderName - The full name of the new folder.
javax.mail.MessagingException
public static void addMessage(javax.mail.Folder folder,
javax.mail.Message message)
throws javax.mail.MessagingException
folder - The opened folder.message - The message.
javax.mail.MessagingException
public static void delete(javax.mail.Folder folder)
throws javax.mail.MessagingException
folder - The folder to be deleted.
javax.mail.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||