From: jihoonl Date: Sat, 7 Nov 2009 00:12:12 +0000 (+0000) Subject: readLine -> readByte for body X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ab0613c8d59043d4cb7e5b892ff3c3afefd8ca5;p=IRC.git readLine -> readByte for body --- diff --git a/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java b/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java index de6b748f..a75e496c 100644 --- a/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java +++ b/Robust/src/Benchmarks/Distributed/SpamFilter/Mail.java @@ -70,10 +70,11 @@ public class Mail { body = new String(); + byte readBody[100000000]; - while((line = fileinput.readLine()) != null) + while((fileinput.readByte(readBody)!= EOF) { - body += line; + body += new String(readBody); } fileinput.close();