|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.mail.Folder | +--dog.mail.nntp.Newsgroup
The folder class implementing the NNTP mail protocol.
Fields inherited from class javax.mail.Folder |
HOLDS_FOLDERS,
HOLDS_MESSAGES,
mode,
READ_ONLY,
READ_WRITE,
store |
Constructor Summary | |
protected |
Newsgroup(javax.mail.Store store,
java.lang.String name)
Constructor. |
protected |
Newsgroup(javax.mail.Store store,
java.lang.String name,
int count,
int first,
int last)
Constructor. |
Method Summary | |
void |
appendMessages(javax.mail.Message[] articles)
NNTP folders are read-only. |
void |
close(boolean expunge)
Closes this folder. |
boolean |
create(int i)
NNTP folders can't be created, deleted, or renamed. |
boolean |
delete(boolean flag)
NNTP folders can't be created, deleted, or renamed. |
boolean |
exists()
Indicates whether this folder exists. |
javax.mail.Message[] |
expunge()
Expunges this folder. |
void |
fetch(javax.mail.Message[] articles,
javax.mail.FetchProfile fetchprofile)
Does nothing. |
javax.mail.Folder |
getFolder(java.lang.String s)
NNTP folders can't contain subfolders. |
java.lang.String |
getFullName()
Returns the full name of this folder. |
javax.mail.Message |
getMessage(int msgnum)
Returns the specified article in this folder. |
int |
getMessageCount()
Returns the number of articles in this folder. |
javax.mail.Message[] |
getMessages()
Returns the articles in this folder. |
java.lang.String |
getName()
Returns the name of this folder. |
javax.mail.Folder |
getParent()
NNTP folders can't have parents. |
javax.mail.Flags |
getPermanentFlags()
Returns the permanent flags for this folder. |
char |
getSeparator()
NNTP folders can't contain subfolders. |
int |
getType()
Returns the type of this folder. |
boolean |
hasNewMessages()
Indicates whether this folder contains any new articles. |
boolean |
isOpen()
Indicates whether this folder is open. |
boolean |
isSubscribed()
Indicates whether this folder is subscribed. |
javax.mail.Folder[] |
list(java.lang.String s)
NNTP folders can't contain subfolders. |
void |
open(int mode)
Opens this folder. |
boolean |
renameTo(javax.mail.Folder folder)
NNTP folders can't be created, deleted, or renamed. |
Methods inherited from class javax.mail.Folder |
addConnectionListener,
addFolderListener,
addMessageChangedListener,
addMessageCountListener,
copyMessages,
finalize,
getMessages,
getMessages,
getMode,
getNewMessageCount,
getStore,
getUnreadMessageCount,
getURLName,
list,
listSubscribed,
listSubscribed,
notifyConnectionListeners,
notifyFolderListeners,
notifyFolderRenamedListeners,
notifyMessageAddedListeners,
notifyMessageChangedListeners,
notifyMessageRemovedListeners,
removeConnectionListener,
removeFolderListener,
removeMessageChangedListener,
removeMessageCountListener,
search,
search,
setFlags,
setFlags,
setFlags,
setSubscribed,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
protected Newsgroup(javax.mail.Store store, java.lang.String name)
protected Newsgroup(javax.mail.Store store, java.lang.String name, int count, int first, int last)
Method Detail |
public java.lang.String getName()
public java.lang.String getFullName()
public int getType() throws javax.mail.MessagingException
public boolean exists() throws javax.mail.MessagingException
public boolean hasNewMessages() throws javax.mail.MessagingException
public void open(int mode) throws javax.mail.MessagingException
public void close(boolean expunge) throws javax.mail.MessagingException
public javax.mail.Message[] expunge() throws javax.mail.MessagingException
public boolean isOpen()
public boolean isSubscribed()
public javax.mail.Flags getPermanentFlags()
public int getMessageCount() throws javax.mail.MessagingException
public javax.mail.Message[] getMessages() throws javax.mail.MessagingException
public javax.mail.Message getMessage(int msgnum) throws javax.mail.MessagingException
public void appendMessages(javax.mail.Message[] articles) throws javax.mail.MessagingException
public void fetch(javax.mail.Message[] articles, javax.mail.FetchProfile fetchprofile) throws javax.mail.MessagingException
public javax.mail.Folder getParent() throws javax.mail.MessagingException
public javax.mail.Folder[] list(java.lang.String s) throws javax.mail.MessagingException
public javax.mail.Folder getFolder(java.lang.String s) throws javax.mail.MessagingException
public char getSeparator() throws javax.mail.MessagingException
public boolean create(int i) throws javax.mail.MessagingException
public boolean delete(boolean flag) throws javax.mail.MessagingException
public boolean renameTo(javax.mail.Folder folder) throws javax.mail.MessagingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |