Revision: 796
          http://jwebunit.svn.sourceforge.net/jwebunit/?rev=796&view=rev
Author:   henryju
Date:     2009-02-05 16:37:19 +0000 (Thu, 05 Feb 2009)

Log Message:
-----------
[2568604] Used buffered output stream to improve WebTester.saveAs method 
performances.

Modified Paths:
--------------
    
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
    trunk/src/changes/changes.xml

Modified: 
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
===================================================================
--- 
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 
    2009-01-21 14:17:24 UTC (rev 795)
+++ 
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java 
    2009-02-05 16:37:19 UTC (rev 796)
@@ -6,10 +6,12 @@
 
 import java.awt.Image;
 import java.awt.image.BufferedImage;
+import java.io.BufferedOutputStream;
 import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.OutputStream;
 import java.io.PrintStream;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -2963,7 +2965,7 @@
         int c=0;
         try {
             f.createNewFile();
-            FileOutputStream out = new FileOutputStream(f);
+            OutputStream out = new BufferedOutputStream(new 
FileOutputStream(f));
             while ((c=in.read()) != -1) out.write(c);
             in.close();
             out.close();

Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml       2009-01-21 14:17:24 UTC (rev 795)
+++ trunk/src/changes/changes.xml       2009-02-05 16:37:19 UTC (rev 796)
@@ -8,6 +8,9 @@
     </properties>
     <body>
         <release version="2.2" date="UNKNOW">
+            <action type="fix" dev="henryju" issue="2568604" 
due-to="Umkhulubaas">
+                Used buffered output stream to improve WebTester.saveAs method 
performances.
+            </action>
             <action type="fix" dev="henryju" issue="2525065" due-to="Sivan 
Mozes">
                 WebClient.closeAllWindows() called to prevent memory leak.
             </action>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to