From: jihoonl Date: Sat, 14 Nov 2009 18:35:41 +0000 (+0000) Subject: Mail.Mail fixed X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3f1f21b97bc9200c0575962474d4fccb6a612945;p=IRC.git Mail.Mail fixed --- diff --git a/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java b/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java index 85a02afa..f813b596 100644 --- a/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java +++ b/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java @@ -33,6 +33,7 @@ public class Mail { public Mail(String fileName) // read a mail from file { + fileName = "emails/email41"; System.out.println("fileName= " + fileName); FileInputStream fileinput = new FileInputStream(fileName); @@ -84,6 +85,7 @@ public class Mail { while((fileinput.read(readBody)>0)) { body += new String(readBody); + readBody = new byte[256]; } fileinput.close();