public class MaildirMessage extends org.apache.james.mailbox.store.mail.model.AbstractMessage<Integer>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
newMessage |
| Constructor and Description |
|---|
MaildirMessage(org.apache.james.mailbox.store.mail.model.Mailbox<Integer> mailbox,
long uid,
MaildirMessageName messageName) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBodyContent() |
protected int |
getBodyStartOctet() |
InputStream |
getFullContent()
Return the full content of the message via a
FileInputStream |
long |
getFullContentOctets() |
InputStream |
getHeaderContent() |
Date |
getInternalDate() |
Integer |
getMailboxId() |
String |
getMediaType() |
long |
getModSeq() |
List<org.apache.james.mailbox.store.mail.model.Property> |
getProperties() |
String |
getSubType() |
Long |
getTextualLineCount() |
long |
getUid() |
boolean |
isAnswered() |
boolean |
isDeleted() |
boolean |
isDraft() |
boolean |
isFlagged() |
boolean |
isNew()
Indicates whether this MaildirMessage reflects a new message or one that already
exists in the file system.
|
boolean |
isRecent() |
boolean |
isSeen() |
void |
setFlags(javax.mail.Flags flags) |
void |
setModSeq(long modSeq) |
void |
setUid(long uid) |
String |
toString() |
protected boolean newMessage
public MaildirMessage(org.apache.james.mailbox.store.mail.model.Mailbox<Integer> mailbox, long uid, MaildirMessageName messageName) throws IOException
IOExceptionpublic Integer getMailboxId()
public long getUid()
public void setUid(long uid)
public void setFlags(javax.mail.Flags flags)
Message.setFlags(
javax.mail.Flags)public boolean isAnswered()
Message.isAnswered()public boolean isDeleted()
Message.isDeleted()public boolean isDraft()
Message.isDraft()public boolean isFlagged()
Message.isFlagged()public boolean isRecent()
Message.isRecent()public boolean isSeen()
Message.isSeen()public boolean isNew()
public long getModSeq()
Message.getModSeq()public void setModSeq(long modSeq)
Message.setModSeq(long)public String getMediaType()
Message.getMediaType()public String getSubType()
Message.getSubType()public long getFullContentOctets()
Message.getFullContentOctets()public Long getTextualLineCount()
Message.getTextualLineCount()public List<org.apache.james.mailbox.store.mail.model.Property> getProperties()
Message.getProperties()public Date getInternalDate()
Message.getInternalDate()public InputStream getFullContent() throws IOException
FileInputStreamgetFullContent in interface org.apache.james.mailbox.store.mail.model.Message<Integer>getFullContent in class org.apache.james.mailbox.store.mail.model.AbstractMessage<Integer>IOExceptionpublic InputStream getBodyContent() throws IOException
IOExceptionMessage.getBodyContent()protected int getBodyStartOctet()
getBodyStartOctet in class org.apache.james.mailbox.store.mail.model.AbstractMessage<Integer>AbstractMessage.getBodyStartOctet()public InputStream getHeaderContent() throws IOException
IOExceptionCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.