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.MailSummaryFileCheddar

java.lang.Object
   |
   +----grendel.storage.MailSummaryFile
           |
           +----grendel.storage.MailSummaryFileCheddar

This class knows how to read a Netscape 2.0 / 3.0 mail summary file. It does not know how to write them, because our new internal representation of messages doesn't keep around enough information to regenerate the file compatibly (doing so would consume a lot more memory.)


class  MailSummaryFileCheddar
     extends grendel.storage.MailSummaryFile
{
          // Constructors 1
     MailSummaryFileCheddar(BerkeleyFolder);

          // Methods 3
     protected synchronized void getMessageCounts();
     synchronized long readSummaryFile(InputStream) throws IOException;
     protected void salvageMessage(BerkeleyMessage, Object);
}



Constructors


MailSummaryFileCheddar

   MailSummaryFileCheddar(BerkeleyFolder folder) 



Methods


readSummaryFile

   synchronized long readSummaryFile(InputStream sum)  throws IOException
Overrides:
readSummaryFile in class MailSummaryFile


salvageMessage

   protected void salvageMessage(BerkeleyMessage m, 
                                 Object salvage_object) 

Assumes the salvage table contains Long values which are flags in X-Mozilla-Status form.

Overrides:
salvageMessage in class MailSummaryFile


getMessageCounts

   protected synchronized void getMessageCounts() 

Read only enough of the file to fill in the values of total_message_count, undeleted_message_count, unread_message_count, and deleted_message_bytes.

Overrides:
getMessageCounts in class MailSummaryFile


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4