public class MailReader extends Object
MailReader provides features to read mails.| Constructor and Description |
|---|
MailReader(MailAccount account)
Create a new instance of
MailReader with the given account. |
| Modifier and Type | Method and Description |
|---|---|
Store |
getStore()
Get a
Store object and connect to the store if not connected. |
public MailReader(MailAccount account)
MailReader with the given account.account - the account to useIllegalArgumentException - if mail account can't get a Storepublic Store getStore() throws AuthenticationFailedException, MessagingException
Store object and connect to the store if not connected.StoreAuthenticationFailedException - if authentication failsMessagingException - if other failure