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.intertwingle.Twingle

java.lang.Object
   |
   +----grendel.storage.intertwingle.Twingle

This is the glue between the storage of intertwingle data and the rest of the mail system. It will probably get thrown out or extensively rewritten; I'm still playing.


public class  Twingle
     extends java.lang.Object
     implements java.lang.Runnable
{
          // Fields 6
     private static final boolean DEBUG;
     private static boolean Initialized;
     private static Twingle Singleton;
     protected DB db;
     protected Vector queue;
     protected Thread thread;

          // Constructors 1
     Twingle(File) throws IOException;

          // Methods 6
     public static Twingle GetSingleton();
     static void Spew(String);
     public void add(InternetHeaders, Folder);
     void assert(String, String, String);
     protected void hackAddressList(String, InternetHeaders, String);
     public void run();

          // Inner Classes 1
     class AddCommand
}



Fields


DEBUG

   private static final boolean DEBUG


Singleton

   private static Twingle Singleton


Initialized

   private static boolean Initialized


db

   protected DB db


thread

   protected Thread thread


queue

   protected Vector queue



Constructors


Twingle

   Twingle(File f)  throws IOException



Methods


Spew

   static void Spew(String s) 


GetSingleton

   public static Twingle GetSingleton() 


assert

   void assert(String name, 
               String slot, 
               String value) 


add

   public void add(InternetHeaders headers, 
                   Folder folder) 


hackAddressList

   protected void hackAddressList(String id, 
                                  InternetHeaders headers, 
                                  String slot) 

Find the given header ("to" or "cc"), and assert an entry for each address in it. This needs the code to parse the zillions of different kinds of addresses; for now, we just assume everything is of the form "Full name ".



run

   public void run() 
Implements:
run in interface Runnable


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