|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFolder
com.sun.mail.imap.IMAPFolder
com.sun.mail.imap.DefaultFolder
public class DefaultFolder
The default IMAP folder (root of the naming hierarchy).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.mail.imap.IMAPFolder |
|---|
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommand |
| Field Summary |
|---|
| Fields inherited from class com.sun.mail.imap.IMAPFolder |
|---|
attributes, availableFlags, debug, exists, fullName, isNamespace, messageCache, messageCacheLock, name, out, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATOR |
| Constructor Summary | |
|---|---|
protected |
DefaultFolder(IMAPStore store)
|
| Method Summary | |
|---|---|
void |
appendMessages(Message[] msgs)
Append the given messages into this folder. |
boolean |
delete(boolean recurse)
Delete this folder. |
Message[] |
expunge()
Expunge all messages marked as DELETED. |
Folder |
getFolder(String name)
Get the named subfolder. |
String |
getName()
Get the name of this folder. |
Folder |
getParent()
Get this folder's parent. |
boolean |
hasNewMessages()
Check whether this folder has new messages. |
Folder[] |
list(String pattern)
List all subfolders matching the specified pattern. |
Folder[] |
listSubscribed(String pattern)
List all subscribed subfolders matching the specified pattern. |
boolean |
renameTo(Folder f)
Rename this folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultFolder(IMAPStore store)
| Method Detail |
|---|
public String getName()
IMAPFolder
getName in class IMAPFolderpublic Folder getParent()
IMAPFolder
getParent in class IMAPFolder
public Folder[] list(String pattern)
throws MessagingException
IMAPFolder
list in class IMAPFolderMessagingException
public Folder[] listSubscribed(String pattern)
throws MessagingException
IMAPFolder
listSubscribed in class IMAPFolderMessagingException
public boolean hasNewMessages()
throws MessagingException
IMAPFolder
hasNewMessages in class IMAPFolderMessagingException
public Folder getFolder(String name)
throws MessagingException
IMAPFolder
getFolder in class IMAPFolderMessagingException
public boolean delete(boolean recurse)
throws MessagingException
IMAPFolder
delete in class IMAPFolderMessagingException
public boolean renameTo(Folder f)
throws MessagingException
IMAPFolder
renameTo in class IMAPFolderMessagingException
public void appendMessages(Message[] msgs)
throws MessagingException
IMAPFolder
appendMessages in class IMAPFolderMessagingException
public Message[] expunge()
throws MessagingException
IMAPFolder
expunge in class IMAPFolderMessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||