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
- IOException
InputStream getMessageHeaders(long uid) throws IOException
uid
- IOException
InputStream getMessage(long uid) throws IOException
InputStream
or
null
if no message can be found for the given
uid
uid
- IOException
List<MessageMetaData> getMessages() throws IOException
IOException
void remove(long... uids) throws IOException
uids
- IOException
String getIdentifier() throws IOException
IOException
void close() throws IOException
Mailbox
's content will failIOException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.