From 3f1f21b97bc9200c0575962474d4fccb6a612945 Mon Sep 17 00:00:00 2001 From: jihoonl Date: Sat, 14 Nov 2009 18:35:41 +0000 Subject: [PATCH] Mail.Mail fixed --- Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.34.1