java.lang.Object | +--javax.mail.Folder | +--gnu.mail.providers.nntp.NNTPFolder
void | appendMessages(Message messages) NNTP servers are read-only. |
void | close(boolean expunge) This method has no particular meaning in NNTP. |
boolean | create(int type) NNTP servers are read-only. |
boolean | delete(boolean recurse) NNTP servers are read-only. |
boolean | exists() Indicates whether the newsgroup is present on the server. |
Message[] | expunge() NNTP servers are read-only. |
void | fetch(Message msgs, FetchProfile fp) Prefetch. |
getFolder(String name) This folder type does not contain other folders. | |
String | |
getMessage(int msgnum) Returns the article corresponding to the specified article number. | |
int | Returns the number of articles in this newsgroup. |
Message[] | Returns all articles in this group. |
int | getMode() This folder type is always read-only. |
String | getName() Returns the name of the newsgroup, e.g. |
This implementation uses a flat namespace, so the parent of any NNTPFolder is the NNTP root folder. | |
Returns the flags supported by this folder. | |
char | If we move away from a flat namespace, this might be useful. |
int | getType() Returns the type of this folder. |
boolean | Indicates whether there are new articles in this newsgroup. |
boolean | isOpen() |
boolean | Indicates if the newsgroup is subscribed. |
Folder[] | list(String pattern) This folder type does not contain other folders. |
Folder[] | listSubscribed(String pattern) This folder type does not contain other folders. |
void | open(int mode) This method has no particular meaning in NNTP. |
boolean | NNTP servers are read-only. |
void | setSubscribed(boolean flag) Subscribes or unsubscribes to this newsgroup. |
public void appendMessages(Message messages)
public void close(boolean expunge)
public boolean create(int type)
public boolean delete(boolean recurse)
public boolean exists()
public Message[] expunge()
public void fetch(Message msgs, FetchProfile fp)
public Folder getFolder(String name)
public String getFullName()
getName
public Message getMessage(int msgnum)
MessageRemovedException
- often ;-)public int getMessageCount()
public Message[] getMessages()
public int getMode()
public String getName()
alt.test
.
public Folder getParent()
public Flags getPermanentFlags()
public char getSeparator()
public int getType()
public boolean hasNewMessages()
public boolean isOpen()
public boolean isSubscribed()
public Folder[] list(String pattern)
public Folder[] listSubscribed(String pattern)
public void open(int mode)
public boolean renameTo(Folder folder)
public void setSubscribed(boolean flag)