public interface UIDFolder
UIDs are assigned to messages in a folder in a strictly ascending fashion; that is, if the message number of message x is greater than the message number of message y, its UID will also be greater than that of y.
2060 http://www.ietf.org/rfc/rfc2060.txt| Modifier and Type | Interface and Description |
|---|---|
static class |
UIDFolder.FetchProfileItem
A fetch profile item for fetching UIDs.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
LASTUID
This special value can be used as the end parameter in
getMessages(start, end) to denote the last UID
in this folder. |
| Modifier and Type | Method and Description |
|---|---|
Message |
getMessageByUID(long uid)
Returns the message corresponding to the given UID, or
null if no such message exists. |
Message[] |
getMessagesByUID(long[] uids)
Returns the messages specified by the given UIDs.
|
Message[] |
getMessagesByUID(long start,
long end)
Returns the messages in the given range.
|
long |
getUID(Message message)
Returns the UID for the specified message.
|
long |
getUIDValidity()
Returns the UIDValidity value associated with this folder.
|
static final long LASTUID
getMessages(start, end) to denote the last UID
in this folder.long getUIDValidity()
throws MessagingException
A client should compare this value against a UIDValidity value saved from a previous session to ensure that any cached UIDs are valid.
MessagingExceptionMessage getMessageByUID(long uid) throws MessagingException
null if no such message exists.uid - the UID of the desired messageMessagingExceptionMessage[] getMessagesByUID(long start, long end) throws MessagingException
end parameter
to indicate the last available UID.start - the start UIDend - the end UIDMessagingExceptionMessage[] getMessagesByUID(long[] uids) throws MessagingException
null is returned for that entry.
The returned array will be of the same size as the specified UIDs.
uids - the UIDsMessagingExceptionlong getUID(Message message) throws MessagingException
message - a message in this folderjava.util.NoSuchElementException - if the given message is not in this
folderMessagingException© Copyright 2003, 2004 The Free Software Foundation, All rights reserved