public abstract class AbstractMailbox extends Object implements Mailbox
Mailbox
implementation which use a CombinedInputStream
over Mailbox.getMessageHeaders(long)
and Mailbox.getMessageBody(long)
to return the full message.Constructor and Description |
---|
AbstractMailbox() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing
|
InputStream |
getMessage(long uid)
Return the full message (headers + body) as
InputStream or
null if no message can be found for the given
uid |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentifier, getMessageBody, getMessageHeaders, getMessages, remove
public InputStream getMessage(long uid) throws IOException
Mailbox
InputStream
or
null
if no message can be found for the given
uid
getMessage
in interface Mailbox
IOException
public void close() throws IOException
close
in interface Mailbox
IOException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.