javax.mail

Interface UIDFolder

public interface UIDFolder

Nested Class Summary

static class
UIDFolder.FetchProfileItem

Field Summary

static long
LASTUID
A special value than can be passed as the end parameter to Folder.getMessages(int,int) to indicate the last message in this folder.

Method Summary

abstract Message
getMessageByUID(long uid)
abstract Message[]
getMessagesByUID(long start, long end)
abstract Message[]
getMessagesByUID(long[] ids)
abstract long
getUID(Message message)
abstract long
getUIDValidity()

Field Details

LASTUID

public static final long LASTUID
Field Value:
-1L

Method Details

getMessageByUID

public abstract Message getMessageByUID(long uid)
            throws MessagingException

getMessagesByUID

public abstract Message[] getMessagesByUID(long start,
                                           long end)
            throws MessagingException

getMessagesByUID

public abstract Message[] getMessagesByUID(long[] ids)
            throws MessagingException

getUID

public abstract long getUID(Message message)
            throws MessagingException

getUIDValidity

public abstract long getUIDValidity()
            throws MessagingException