|
Class grendel.storage.ParseBerkeleyFolder
All Packages This Package Class Hierarchy Class Search Index
Class grendel.storage.ParseBerkeleyFolder
java.lang.Object
|
+----grendel.storage.ParseBerkeleyFolder
class ParseBerkeleyFolder
extends java.lang.Object
{
// Fields 9
static final int CONTENT_LENGTH_SLACK;
static final boolean DEBUG;
byte[] buf;
protected long deleted_message_bytes;
BerkeleyFolder fFolder;
protected int total_message_count;
Twingle twingle;
protected int undeleted_message_count;
protected int unread_message_count;
// Constructors 1
public ParseBerkeleyFolder();
// Methods 9
long deletedMessageBytes();
int find_content_end(RandomAccessFileWithByteLines, int, int) throws IOException;
boolean flushMozillaStatus(RandomAccessFile, long, int, short) throws IOException;
void mapOverMessages(RandomAccessFile, BerkeleyFolder) throws IOException;
protected synchronized void mapOverMessages(RandomAccessFile, BerkeleyFolder, long) throws IOException;
void recordOne(int, int, int, int, InternetHeaders) throws IOException;
int totalMessageCount();
int undeletedMessageCount();
int unreadMessageCount();
}
Fields
static final boolean DEBUG
static final int CONTENT_LENGTH_SLACK
Twingle twingle
BerkeleyFolder fFolder
byte[] buf
protected int total_message_count
protected int undeleted_message_count
protected int unread_message_count
protected long deleted_message_bytes
Constructors
public ParseBerkeleyFolder()
Default constructor
Methods
int totalMessageCount()
int undeletedMessageCount()
int unreadMessageCount()
long deletedMessageBytes()
int find_content_end(RandomAccessFileWithByteLines in,
int content_length,
int file_length) throws IOException
void recordOne(int envelope_start,
int message_start,
int headers_end,
int message_end,
InternetHeaders headers) throws IOException
void mapOverMessages(RandomAccessFile infile,
BerkeleyFolder f) throws IOException
protected synchronized void mapOverMessages(RandomAccessFile infile,
BerkeleyFolder f,
long starting_file_pos) throws IOException
boolean flushMozillaStatus(RandomAccessFile io,
long message_start,
int message_length,
short mozilla_flags) throws IOException
Overwrite the X-Mozilla-Status header near the given file position.
| Parameter | Description |
| message_start | The position in the file of the start of a
message. A header block is assumed to start at
this position. The file is scanned forward for
an X-Mozilla-Status header in this block. |
| message_length | The length of the message in bytes. |
| mozilla_flags | The flags to overwrite into the existing
X-Mozilla-Status header, if any. |
- Returns:
- true if the header was overwritten, false
otherwise.
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|