|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.mail
|
Nested Class Summary | |
---|---|
static class |
UIDFolder.FetchProfileItem
A fetch profile item for fetching UIDs. |
Field Summary | |
---|---|
static long |
LASTUID
This is a special value that can be used as the end
parameter in getMessages(start, end) , to denote the
last UID in this folder. |
Method Summary | |
---|---|
Message |
getMessageByUID(long uid)
Get the Message corresponding to the given UID. |
Message[] |
getMessagesByUID(long[] uids)
Get the Messages specified by the given array of UIDs. |
Message[] |
getMessagesByUID(long start,
long end)
Get the Messages specified by the given range. |
long |
getUID(Message message)
Get the UID for the specified message. |
long |
getUIDValidity()
Returns the UIDValidity value associated with this folder. |
Field Detail |
---|
static final long LASTUID
end
parameter in getMessages(start, end)
, to denote the
last UID in this folder.
Method Detail |
---|
long getUIDValidity() throws MessagingException
Clients typically compare this value against a UIDValidity value saved from a previous session to insure that any cached UIDs are not stale.
MessagingException
Message getMessageByUID(long uid) throws MessagingException
null
is returned.
uid
- UID for the desired message
null
is returned
if no message corresponding to this UID is obtained.
MessagingException
Message[] getMessagesByUID(long start, long end) throws MessagingException
end
parameter
to indicate the last available UID.
start
- start UIDend
- end UID
MessagingException
LASTUID
Message[] getMessagesByUID(long[] uids) throws MessagingException
null
is returned for that entry.
Note that the returned array will be of the same size as the specified
array of UIDs, and null
entries may be present in the
array to indicate invalid UIDs.
uids
- array of UIDs
MessagingException
long getUID(Message message) throws MessagingException
message
- Message from this folder
NoSuchElementException
- if the given Message
is not in this Folder.
MessagingException