All Packages This Package Class Hierarchy Class Search Index
Class grendel.storage.BerkeleyMessage
java.lang.Object | +----javax.mail.Message | +----grendel.storage.MessageReadOnly | +----grendel.storage.MessageBase | +----grendel.storage.BerkeleyMessage
class BerkeleyMessage
extends grendel.storage.MessageBase
{
// Fields 12
protected static final int X_MOZILLA_FLAG_DELETED;
protected static final int X_MOZILLA_FLAG_FORWARDED;
protected static final int X_MOZILLA_FLAG_HAS_RE;
protected static final int X_MOZILLA_FLAG_MARKED;
protected static final int X_MOZILLA_FLAG_PARTIAL;
protected static final int X_MOZILLA_FLAG_PRIORITY;
protected static final int X_MOZILLA_FLAG_QUEUED;
protected static final int X_MOZILLA_FLAG_READ;
protected static final int X_MOZILLA_FLAG_REPLIED;
protected static final int X_MOZILLA_FLAG_SMTP_AUTH;
int fIndex;
int fLength;
// Constructors 3
BerkeleyMessage(BerkeleyFolder, InternetHeaders);
BerkeleyMessage(BerkeleyFolder, long, long, ByteBuf, ByteBuf, ByteBuf, ByteBuf, ByteBuf[]);
BerkeleyMessage(BerkeleyFolder, long, long, ByteBuf, ByteBuf, ByteBuf, MessageID, MessageID[]);
// Methods 12
public InputStream getInputStreamWithHeaders() throws MessagingException;
public int getLineCount();
public int getSize();
int getStorageFolderIndex();
static long internalFlagsToMozillaFlags(long);
static long makeMozillaFlags(Message);
static long mozillaFlagsToInternalFlags(long);
protected void parseMozillaStatus(InternetHeaders);
protected void setFlagBit(long, boolean);
void setSize(int);
void setStorageFolderIndex(int);
public void writeTo(OutputStream);
}
Fields
fIndex
int fIndex
fLength
int fLength
X_MOZILLA_FLAG_READ
protected static final int X_MOZILLA_FLAG_READ
X_MOZILLA_FLAG_REPLIED
protected static final int X_MOZILLA_FLAG_REPLIED
X_MOZILLA_FLAG_MARKED
protected static final int X_MOZILLA_FLAG_MARKED
X_MOZILLA_FLAG_DELETED
protected static final int X_MOZILLA_FLAG_DELETED
X_MOZILLA_FLAG_HAS_RE
protected static final int X_MOZILLA_FLAG_HAS_RE
X_MOZILLA_FLAG_SMTP_AUTH
protected static final int X_MOZILLA_FLAG_SMTP_AUTH
X_MOZILLA_FLAG_PARTIAL
protected static final int X_MOZILLA_FLAG_PARTIAL
X_MOZILLA_FLAG_QUEUED
protected static final int X_MOZILLA_FLAG_QUEUED
X_MOZILLA_FLAG_FORWARDED
protected static final int X_MOZILLA_FLAG_FORWARDED
X_MOZILLA_FLAG_PRIORITY
protected static final int X_MOZILLA_FLAG_PRIORITY
Constructors
BerkeleyMessage
BerkeleyMessage(BerkeleyFolder f, InternetHeaders h)
BerkeleyMessage
BerkeleyMessage(BerkeleyFolder f, long date, long flags, ByteBuf author, ByteBuf recipient, ByteBuf subj, ByteBuf id, ByteBuf[] refs)
BerkeleyMessage
BerkeleyMessage(BerkeleyFolder f, long date, long flags, ByteBuf author, ByteBuf recipient, ByteBuf subj, MessageID id, MessageID[] refs)
Methods
parseMozillaStatus
protected void parseMozillaStatus(InternetHeaders h)
mozillaFlagsToInternalFlags
static long mozillaFlagsToInternalFlags(long x_mozilla_status)
Given a value read from an X-Mozilla-Status header, returns a value suitable for storing in MessageBase.flags. (The two types of flags don't use the same space or range.)
internalFlagsToMozillaFlags
static long internalFlagsToMozillaFlags(long internal_flags)
Given a value of the form found in MessageBase.flags, returns a value that may be written to an X-Mozilla-Flags header. (The two types of flags don't use the same space or range.)
makeMozillaFlags
static long makeMozillaFlags(Message m)
Returns a reasonable value for the X-Mozilla-Status header of the given Message. If the Message is a subclass of MessageBase, this value will be based on MessageBase.flags; otherwise, we will go through the painful string-based javamail API. (The Message may also be null.)
setSize
void setSize(int l)
getSize
public int getSize()
setStorageFolderIndex
void setStorageFolderIndex(int p)
getStorageFolderIndex
int getStorageFolderIndex()
getInputStreamWithHeaders
public InputStream getInputStreamWithHeaders() throws MessagingException
- Overrides:
- getInputStreamWithHeaders in class MessageReadOnly
setFlagBit
protected void setFlagBit(long flag,
boolean value)
writeTo
public void writeTo(OutputStream aStream)
getLineCount
public int getLineCount()
- Overrides:
- getLineCount in class Message
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4