public final class FullnameFolder
extends javax.mail.Folder
FullnameFolder
- A Folder
implementation whose only purpose is to provide fullname, separator character and UIDs.
All other methods will throw an UnsupportedOperationException
.
Constructor and Description |
---|
FullnameFolder(java.lang.String fullname,
char separator,
java.lang.String uid)
Initializes a new
FullnameFolder |
FullnameFolder(java.lang.String fullname,
char separator,
java.lang.String[] uids)
Initializes a new
FullnameFolder |
Modifier and Type | Method and Description |
---|---|
void |
appendMessages(javax.mail.Message[] msgs) |
void |
close(boolean expunge) |
boolean |
create(int type) |
boolean |
delete(boolean recurse) |
boolean |
exists() |
javax.mail.Message[] |
expunge() |
javax.mail.Folder |
getFolder(java.lang.String name) |
java.lang.String |
getFullName() |
javax.mail.Message |
getMessage(int msgnum) |
int |
getMessageCount() |
java.lang.String |
getName() |
javax.mail.Folder |
getParent() |
javax.mail.Flags |
getPermanentFlags() |
char |
getSeparator() |
int |
getType() |
java.lang.String |
getUID(javax.mail.Message message) |
boolean |
hasNewMessages() |
boolean |
isOpen() |
javax.mail.Folder[] |
list(java.lang.String pattern) |
void |
open(int mode) |
boolean |
renameTo(javax.mail.Folder f) |
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, addMessageRecentListener, copyMessages, fetch, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, getURLName, isSubscribed, list, listSubscribed, listSubscribed, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, removeMessageRecentListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString
public FullnameFolder(java.lang.String fullname, char separator, java.lang.String[] uids)
FullnameFolder
fullname
- The folder's fullnameseparator
- The folder's separator characteruids
- The UIDs corresponding to appropriate message numbers such that uids[0] is the UID of message numbered with 1 and so on.public FullnameFolder(java.lang.String fullname, char separator, java.lang.String uid)
FullnameFolder
fullname
- The folder's fullnameseparator
- The folder's separator characteruid
- The UID corresponding to appropriate message.public void appendMessages(javax.mail.Message[] msgs) throws javax.mail.MessagingException
appendMessages
in class javax.mail.Folder
javax.mail.MessagingException
public void close(boolean expunge) throws javax.mail.MessagingException
close
in class javax.mail.Folder
javax.mail.MessagingException
public boolean create(int type) throws javax.mail.MessagingException
create
in class javax.mail.Folder
javax.mail.MessagingException
public boolean delete(boolean recurse) throws javax.mail.MessagingException
delete
in class javax.mail.Folder
javax.mail.MessagingException
public boolean exists() throws javax.mail.MessagingException
exists
in class javax.mail.Folder
javax.mail.MessagingException
public javax.mail.Message[] expunge() throws javax.mail.MessagingException
expunge
in class javax.mail.Folder
javax.mail.MessagingException
public javax.mail.Folder getFolder(java.lang.String name) throws javax.mail.MessagingException
getFolder
in class javax.mail.Folder
javax.mail.MessagingException
public java.lang.String getFullName()
getFullName
in class javax.mail.Folder
public javax.mail.Message getMessage(int msgnum) throws javax.mail.MessagingException
getMessage
in class javax.mail.Folder
javax.mail.MessagingException
public int getMessageCount() throws javax.mail.MessagingException
getMessageCount
in class javax.mail.Folder
javax.mail.MessagingException
public java.lang.String getName()
getName
in class javax.mail.Folder
public javax.mail.Folder getParent() throws javax.mail.MessagingException
getParent
in class javax.mail.Folder
javax.mail.MessagingException
public javax.mail.Flags getPermanentFlags()
getPermanentFlags
in class javax.mail.Folder
public char getSeparator() throws javax.mail.MessagingException
getSeparator
in class javax.mail.Folder
javax.mail.MessagingException
public int getType() throws javax.mail.MessagingException
getType
in class javax.mail.Folder
javax.mail.MessagingException
public boolean hasNewMessages() throws javax.mail.MessagingException
hasNewMessages
in class javax.mail.Folder
javax.mail.MessagingException
public boolean isOpen()
isOpen
in class javax.mail.Folder
public javax.mail.Folder[] list(java.lang.String pattern) throws javax.mail.MessagingException
list
in class javax.mail.Folder
javax.mail.MessagingException
public void open(int mode) throws javax.mail.MessagingException
open
in class javax.mail.Folder
javax.mail.MessagingException
public boolean renameTo(javax.mail.Folder f) throws javax.mail.MessagingException
renameTo
in class javax.mail.Folder
javax.mail.MessagingException
public java.lang.String getUID(javax.mail.Message message)