You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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


DEBUG

   static final boolean DEBUG


CONTENT_LENGTH_SLACK

   static final int CONTENT_LENGTH_SLACK


twingle

   Twingle twingle


fFolder

   BerkeleyFolder fFolder


buf

   byte[] buf


total_message_count

   protected int total_message_count


undeleted_message_count

   protected int undeleted_message_count


unread_message_count

   protected int unread_message_count


deleted_message_bytes

   protected long deleted_message_bytes



Constructors


ParseBerkeleyFolder

   public ParseBerkeleyFolder() 

Default constructor




Methods


totalMessageCount

   int totalMessageCount() 


undeletedMessageCount

   int undeletedMessageCount() 


unreadMessageCount

   int unreadMessageCount() 


deletedMessageBytes

   long deletedMessageBytes() 


find_content_end

   int find_content_end(RandomAccessFileWithByteLines in, 
                        int content_length, 
                        int file_length)  throws IOException


recordOne

   void recordOne(int envelope_start, 
                  int message_start, 
                  int headers_end, 
                  int message_end, 
                  InternetHeaders headers)  throws IOException


mapOverMessages

   void mapOverMessages(RandomAccessFile infile, 
                        BerkeleyFolder f)  throws IOException


mapOverMessages

   protected synchronized void mapOverMessages(RandomAccessFile infile, 
                                               BerkeleyFolder f, 
                                               long starting_file_pos)  throws IOException


flushMozillaStatus

   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