[Webfunds-commits] java/webfunds/client/sox StoreReceiptStore.java

Ian Grigg iang@cypherpunks.ai
Fri, 13 Apr 2001 22:56:28 -0400 (AST)


iang        01/04/13 22:56:28

  Modified:    webfunds/client/sox StoreReceiptStore.java
  Log:
  removed influence of PW

Revision  Changes    Path
1.33      +14 -5     java/webfunds/client/sox/StoreReceiptStore.java

Index: StoreReceiptStore.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/sox/StoreReceiptStore.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- StoreReceiptStore.java	2001/03/07 00:29:43	1.32
+++ StoreReceiptStore.java	2001/04/14 02:56:28	1.33
@@ -1,5 +1,5 @@
 /*
- * $Id: StoreReceiptStore.java,v 1.32 2001/03/07 00:29:43 iang Exp $
+ * $Id: StoreReceiptStore.java,v 1.33 2001/04/14 02:56:28 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -12,7 +12,9 @@
 import java.io.PrintWriter;
 import java.io.ByteArrayOutputStream;
 
-import webfunds.utils.Hex;
+import webfunds.util.Log;
+import webfunds.util.Hex;
+
 import webfunds.sox.*;
 import webfunds.utils.Debug;
 import webfunds.store.Store;
@@ -41,6 +43,12 @@
         init(store);
     }
 
+    public StoreReceiptStore(Store store, Log bug)
+    {
+        debug(bug);
+        init(store);
+    }
+
     public StoreReceiptStore(Store store)
     {
         init(store);
@@ -601,7 +609,7 @@
 
     private static void addSubToAc(AccountStore as,
                                    ItemId item, AccountId acct,
-                                   PrintWriter bug)
+                                   Log bug)
         throws Exception
     {
         bug.println("      checking: " + item + " to " + acct);
@@ -620,11 +628,12 @@
         bug.println("      added: " + sub.getItemId() + " to " + acct);
     }
 
-    public static void convert(Store store, PrintWriter bug)
+    public static void convert(Store store, PrintWriter bug2)
     {
-        bug.println("\n  CONVERT v2");
         ReceiptsStore rs;
         AccountStore as;
+        Log bug = (bug2 instanceof Log) ? ((Log)bug2) : new Log(bug2);
+        bug.println("\n  CONVERT v2");
 
         try
         {