| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjavax.mail.Foldergnu.mail.providers.nntp.NNTPRootFolderpublic final class NNTPRootFolderextends FolderField Summary |
Fields inherited from class javax.mail.Folder | |
HOLDS_FOLDERS, HOLDS_MESSAGES, READ_ONLY, READ_WRITE, mode, store | |
Method Summary | |
void |
|
void |
|
boolean |
|
boolean |
|
boolean |
|
Message[] |
|
Folder |
|
String | |
Message |
|
int | |
String |
|
Folder | |
Flags | |
char |
|
int |
|
boolean | |
boolean |
|
Folder[] |
|
Folder[] |
|
Folder[] |
|
Folder[] |
|
void |
|
boolean | |
void |
|
public void appendMessages(Message[] messages) throws MessagingException
- Overrides:
- appendMessages in interface Folder
public Folder getFolder(String name) throws MessagingException
Returns a new Folder object associated with the specified name.
public Message getMessage(int msgnum) throws MessagingException
- Overrides:
- getMessage in interface Folder
public int getMessageCount()
throws MessagingException
- Overrides:
- getMessageCount in interface Folder
public char getSeparator()
throws MessagingExceptionAs we're dealing with a flat namespace, the value of this is irrelevant.
- Overrides:
- getSeparator in interface Folder
public int getType()
This folder contains only folders.
public boolean hasNewMessages()
throws MessagingException
- Overrides:
- hasNewMessages in interface Folder
public Folder[] list(String pattern) throws MessagingException
Returns the list of folders matching the specified pattern.
- Parameters:
pattern- the JavaMail pattern
public Folder[] list(String pattern, ListFolderListener listener) throws MessagingException
Returns the list of folders matching the specified pattern.
- Parameters:
pattern- the JavaMail patternlistener- the listener that will be called for each folder name as soon as it is known
public Folder[] list(ListFolderListener listener) throws MessagingException
Returns the list of folders matching the specified pattern.
- Parameters:
listener- the listener to be called as soon as a new folder is listed
public Folder[] listSubscribed(String pattern) throws MessagingException
Returns the list of subscribed folders matching the specified pattern.
- Overrides:
- listSubscribed in interface Folder
- Parameters:
pattern- the JavaMail pattern
public void setSubscribed(boolean flag)
throws MessagingExceptionThis folder is always "subscribed".
- Overrides:
- setSubscribed in interface Folder