public interface Mailbox
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the mailbox, Any futher attempt to access or change the
Mailbox's content will fail |
String |
getIdentifier()
Return the identifier for the mailbox.
|
InputStream |
getMessage(long uid)
Return the full message (headers + body) as
InputStream or
null if no message can be found for the given
uid |
InputStream |
getMessageBody(long uid)
|
InputStream |
getMessageHeaders(long uid)
|
List<MessageMetaData> |
getMessages()
|
void |
remove(long... uids)
Remove the messages with the given uids
|
InputStream getMessageBody(long uid) throws IOException
uid - IOExceptionInputStream getMessageHeaders(long uid) throws IOException
uid - IOExceptionInputStream getMessage(long uid) throws IOException
InputStream or
null if no message can be found for the given
uiduid - IOExceptionList<MessageMetaData> getMessages() throws IOException
IOExceptionvoid remove(long... uids)
throws IOException
uids - IOExceptionString getIdentifier() throws IOException
IOExceptionvoid close()
throws IOException
Mailbox's content will failIOExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.