|
Class grendel.storage.BerkeleyMessage
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
int fIndex
int fLength
protected static final int X_MOZILLA_FLAG_READ
protected static final int X_MOZILLA_FLAG_REPLIED
protected static final int X_MOZILLA_FLAG_MARKED
protected static final int X_MOZILLA_FLAG_DELETED
protected static final int X_MOZILLA_FLAG_HAS_RE
protected static final int X_MOZILLA_FLAG_SMTP_AUTH
protected static final int X_MOZILLA_FLAG_PARTIAL
protected static final int X_MOZILLA_FLAG_QUEUED
protected static final int X_MOZILLA_FLAG_FORWARDED
protected static final int X_MOZILLA_FLAG_PRIORITY
Constructors
BerkeleyMessage(BerkeleyFolder f,
InternetHeaders h)
BerkeleyMessage(BerkeleyFolder f,
long date,
long flags,
ByteBuf author,
ByteBuf recipient,
ByteBuf subj,
ByteBuf id,
ByteBuf[] refs)
BerkeleyMessage(BerkeleyFolder f,
long date,
long flags,
ByteBuf author,
ByteBuf recipient,
ByteBuf subj,
MessageID id,
MessageID[] refs)
Methods
protected void parseMozillaStatus(InternetHeaders h)
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.)
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.)
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.)
void setSize(int l)
public int getSize()
- Overrides:
- getSize in class Message
void setStorageFolderIndex(int p)
int getStorageFolderIndex()
public InputStream getInputStreamWithHeaders() throws MessagingException
- Overrides:
- getInputStreamWithHeaders in class MessageReadOnly
protected void setFlagBit(long flag,
boolean value)
public void writeTo(OutputStream aStream)
- Overrides:
- writeTo in class Message
public int getLineCount()
- Overrides:
- getLineCount in class Message
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|