From: <bri...@us...> - 2003-07-08 19:48:48
|
Update of /cvsroot/webmacro/webmacro/test/perf In directory sc8-pr-cvs1:/tmp/cvs-serv7814/test/perf Modified Files: SpinTest.java Log Message: Eliminate FastWriter from public interface; use Template.write(OutputStream) instead Index: SpinTest.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/test/perf/SpinTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SpinTest.java 12 Jun 2003 00:47:49 -0000 1.3 --- SpinTest.java 8 Jul 2003 19:48:45 -0000 1.4 *************** *** 1,10 **** import org.webmacro.Context; - import org.webmacro.FastWriter; import org.webmacro.Template; import org.webmacro.WM; - import java.io.FileOutputStream; - public class SpinTest { --- 1,9 ---- + import java.io.*; + import org.webmacro.Context; import org.webmacro.Template; import org.webmacro.WM; public class SpinTest { *************** *** 32,39 **** Template t = wm.getTemplate(template); ! FastWriter fw = new FastWriter(wm.getBroker(), new FileOutputStream("/dev/null"), "US-ASCII"); ! ! t.write(fw, c); ! fw.close(); } --- 31,35 ---- Template t = wm.getTemplate(template); ! t.write(new FileOutputStream("/dev/null"), "US-ASCII", c); } |