@Entity(name="Message") public class JPAMessage extends AbstractJPAMessage
AbstractJPAMessage.MailboxIdUidKey| Constructor and Description |
|---|
JPAMessage()
Deprecated.
|
JPAMessage(JPAMailbox mailbox,
Date internalDate,
int size,
javax.mail.Flags flags,
javax.mail.internet.SharedInputStream content,
int bodyStartOctet,
PropertyBuilder propertyBuilder) |
JPAMessage(JPAMailbox mailbox,
long uid,
long modSeq,
Message<?> message)
Create a copy of the given message
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBodyContent()
Gets the body content of the document.
|
InputStream |
getHeaderContent()
Gets the header as
InputStream. |
createUserFlags, equals, getBodyStartOctet, getFullContentOctets, getInternalDate, getMailbox, getMailboxId, getMediaType, getModSeq, getProperties, getSubType, getTextualLineCount, getUid, hashCode, isAnswered, isDeleted, isDraft, isFlagged, isRecent, isSeen, setFlags, setMailbox, setModSeq, setUid, toStringcompareTo, createFlags, getBodyOctets, getFullContent@Deprecated public JPAMessage()
public JPAMessage(JPAMailbox mailbox, Date internalDate, int size, javax.mail.Flags flags, javax.mail.internet.SharedInputStream content, int bodyStartOctet, PropertyBuilder propertyBuilder) throws MailboxException
MailboxExceptionpublic JPAMessage(JPAMailbox mailbox, long uid, long modSeq, Message<?> message) throws MailboxException
message - MailboxExceptionpublic InputStream getBodyContent() throws IOException
MessageInputStream
on every call, which basicly means it need to start at position 0IOExceptionMessage.getBodyContent()public InputStream getHeaderContent() throws IOException
MessageInputStream. This MUST INCLUDE the CRLF terminator
Be aware that this method need to return a new fresh InputStream
on every callIOExceptionMessage.getHeaderContent()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.