public abstract class AbstractMessage<Id> extends Object implements Message<Id>
Message
Constructor and Description |
---|
AbstractMessage() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Message<Id> other) |
javax.mail.Flags |
createFlags()
Creates a new flags instance populated
with the current flag data.
|
protected String[] |
createUserFlags()
Return all stored user flags or null if none are stored.
|
long |
getBodyOctets()
The number of octets contained in the body of this part.
|
protected abstract int |
getBodyStartOctet()
Return the start octet of the body
|
InputStream |
getFullContent()
This implementation just concat
Message.getHeaderContent() and Message.getBodyContent() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBodyContent, getFullContentOctets, getHeaderContent, getInternalDate, getMailboxId, getMediaType, getModSeq, getProperties, getSubType, getTextualLineCount, getUid, isAnswered, isDeleted, isDraft, isFlagged, isRecent, isSeen, setFlags, setModSeq, setUid
public int compareTo(Message<Id> other)
compareTo
in interface Comparable<Message<Id>>
Comparable.compareTo(java.lang.Object)
public final javax.mail.Flags createFlags()
Message
createFlags
in interface Message<Id>
Message.createFlags()
protected String[] createUserFlags()
public long getBodyOctets()
getBodyOctets
in interface Message<Id>
protected abstract int getBodyStartOctet()
public InputStream getFullContent() throws IOException
Message.getHeaderContent()
and Message.getBodyContent()
.
Implementation should override this if they can provide a more performant solutiongetFullContent
in interface Message<Id>
exception
IOException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.