1 21 22 27 28 package javax.mail; 29 30 import java.util.NoSuchElementException ; 31 32 57 58 public interface UIDFolder { 59 60 68 public static class FetchProfileItem extends FetchProfile.Item { 69 protected FetchProfileItem(String name) { 70 super(name); 71 } 72 73 88 public static final FetchProfileItem UID = 89 new FetchProfileItem("UID"); 90 } 91 92 99 public final static long LASTUID = -1; 100 101 110 public long getUIDValidity() throws MessagingException ; 111 112 121 public Message getMessageByUID(long uid) throws MessagingException ; 122 123 134 public Message [] getMessagesByUID(long start, long end) 135 throws MessagingException ; 136 137 149 public Message [] getMessagesByUID(long[] uids) 150 throws MessagingException ; 151 152 162 public long getUID(Message message) throws MessagingException ; 163 } 164 | Popular Tags |