[Webfunds-commits] java/webfunds/sox MailReply.java
Ian Grigg
iang@cypherpunks.ai
Fri, 6 Apr 2001 19:50:10 -0400 (AST)
iang 01/04/06 19:50:10
Modified: webfunds/sox MailReply.java
Log:
cleaned up comments only
Revision Changes Path
1.16 +9 -12 java/webfunds/sox/MailReply.java
Index: MailReply.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/MailReply.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- MailReply.java 2000/09/24 23:32:04 1.15
+++ MailReply.java 2001/04/06 23:50:10 1.16
@@ -1,5 +1,5 @@
/*
- * $Id: MailReply.java,v 1.15 2000/09/24 23:32:04 iang Exp $
+ * $Id: MailReply.java,v 1.16 2001/04/06 23:50:10 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -87,6 +87,9 @@
{
DataOutputStream dos = new DataOutputStream(os);
super.encode(dos);
+
+ // also, see the same code in DepositReply
+
int len = (mails == null) ? 0 : mails.length;
dos.writeInt(len);
for(int i = 0; i < len; i++)
@@ -99,7 +102,7 @@
public void decode(InputStream is)
throws SOXPacketException
{
-System.err.println("Decoding MailReply");
+// System.err.println("Decoding MailReply");
DataInputStream dis = new DataInputStream(is);
super.decode(dis);
int len;
@@ -111,22 +114,16 @@
//newMails = new byte[len][];
mails = new MailItem[len];
-System.err.println("There are " + len + " mails in this reply");
+// System.err.println("There are " + len + " mails in this reply");
for (int i = 0; i < len; i++)
{
-// byte[] b;
try {
-// b = readByteArray(dis);
- mails[i] = new MailItem(dis);
+ mails[i] = new MailItem(dis);
} catch (IOException ex) {
- throw new SOXPacketException("IOEx: " + ex);
+ throw new SOXPacketException("IOEx: " + ex);
}
-System.err.println("decode mail#" + i + ": " + mails[i].toString());
-// if (b == null || b.length < 3)
-// throw new SOXPacketException("mail #" + i + " too short");
-// newMails[i] = b;
-// mails[i] = new MailItem(b);
+// System.err.println("decode mail#" + i + ": " + mails[i].toString());
}
}