|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Folder
gnu.mail.providers.pop3.POP3Folder
public final class POP3Folder
The folder class implementing the POP3 mail protocol.
| Field Summary |
|---|
| Fields inherited from class javax.mail.Folder |
|---|
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
| Constructor Summary | |
|---|---|
protected |
POP3Folder(Store store,
int type)
Constructor. |
| Method Summary | |
|---|---|
void |
appendMessages(Message[] messages)
You can't append messages to a POP3 folder. |
void |
close(boolean expunge)
Closes this folder. |
boolean |
create(int i)
POP3 folders can't be created, deleted, or renamed. |
boolean |
delete(boolean flag)
POP3 folders can't be created, deleted, or renamed. |
boolean |
exists()
Indicates whether this folder exists. |
Message[] |
expunge()
Expunges this folder. |
void |
fetch(Message[] messages,
FetchProfile fp)
Fetches headers and/or content for the specified messages. |
Folder |
getFolder(String s)
POP3 folders can't contain subfolders. |
String |
getFullName()
Returns the full name of this folder. |
Message |
getMessage(int msgnum)
Returns the specified message from this folder. |
int |
getMessageCount()
Returns the number of messages in this folder. |
String |
getName()
Returns the name of this folder. |
Folder |
getParent()
POP3 folders can't have parents. |
Flags |
getPermanentFlags()
Returns the permanent flags for this folder. |
char |
getSeparator()
Returns the path separator charcter. |
int |
getType()
Returns the type of this folder. |
String |
getUID(Message message)
Returns the unique ID for the given message, or null if
not available. |
boolean |
hasNewMessages()
Indicates whether this folder contains new messages. |
boolean |
isOpen()
Indicates whether this folder is open. |
Folder[] |
list()
Returns the subfolders for this folder. |
Folder[] |
list(String pattern)
Returns the subfolders for this folder. |
void |
open(int mode)
Opens this folder. |
boolean |
renameTo(Folder folder)
POP3 folders can't be created, deleted, or renamed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected POP3Folder(Store store,
int type)
| Method Detail |
|---|
public String getName()
getName in class Folderpublic String getFullName()
getFullName in class Folder
public int getType()
throws MessagingException
getType in class FolderMessagingException - if a messaging error occurred
public boolean exists()
throws MessagingException
exists in class FolderMessagingException - if a messaging error occurred
public boolean hasNewMessages()
throws MessagingException
hasNewMessages in class FolderMessagingException - if a messaging error occurred
public void open(int mode)
throws MessagingException
open in class Foldermode - open the Folder READ_ONLY or READ_WRITE
MessagingException - if a messaging error occurred
public void close(boolean expunge)
throws MessagingException
close in class Folderexpunge - if the folder is to be expunged before it is closed
MessagingException - if a messaging error occurred
public Message[] expunge()
throws MessagingException
expunge in class FolderMessagingException - if a messaging error occurredpublic boolean isOpen()
isOpen in class Folderpublic Flags getPermanentFlags()
getPermanentFlags in class Folder
public int getMessageCount()
throws MessagingException
getMessageCount in class FolderMessagingException - if a messaging error occurred
public Message getMessage(int msgnum)
throws MessagingException
getMessage in class Foldermsgnum - the message number
MessagingException - if a messaging error occurred
public void appendMessages(Message[] messages)
throws MessagingException
appendMessages in class Foldermessages - array of messages to be appended
FolderNotFoundException - if this folder does not exist
MessagingException - if the append operation failed
public void fetch(Message[] messages,
FetchProfile fp)
throws MessagingException
fetch in class Foldermessages - the messages to fetch the items forfp - the fetch profile
MessagingException - ignore
public Folder[] list()
throws MessagingException
list in class FolderMessagingException
public Folder[] list(String pattern)
throws MessagingException
list in class Folderpattern - the match pattern
MessagingException
public Folder getParent()
throws MessagingException
getParent in class FolderMessagingException
public Folder getFolder(String s)
throws MessagingException
getFolder in class Folders - the name of the folder
MessagingException
public char getSeparator()
throws MessagingException
getSeparator in class FolderMessagingException
public boolean create(int i)
throws MessagingException
create in class Folderi - the desired type of the folder
MessagingException
public boolean delete(boolean flag)
throws MessagingException
delete in class Folderflag - delete any subfolders
FolderNotFoundException - if this folder does not exist
MessagingException
public boolean renameTo(Folder folder)
throws MessagingException
renameTo in class Folderfolder - a folder representing the new name for this folder
FolderNotFoundException - if this folder does not exist
MessagingException
public String getUID(Message message)
throws MessagingException
null if
not available.
message - the message
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||