maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r659011 - in /maven/wagon/trunk: pom.xml wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
Date Thu, 22 May 2008 06:08:44 GMT
Author: brett
Date: Wed May 21 23:08:44 2008
New Revision: 659011

URL: http://svn.apache.org/viewvc?rev=659011&view=rev
Log:
[WAGON-211] Use buffered streams for file operations
Submitted by: Jason Dillon

Modified:
    maven/wagon/trunk/pom.xml
    maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java

Modified: maven/wagon/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/pom.xml?rev=659011&r1=659010&r2=659011&view=diff
==============================================================================
--- maven/wagon/trunk/pom.xml (original)
+++ maven/wagon/trunk/pom.xml Wed May 21 23:08:44 2008
@@ -244,5 +244,8 @@
     <contributor>
       <name>M. van der Plas</name>
     </contributor>
+    <contributor>
+      <name>Jason Dillon</name>
+    </contributor>
   </contributors>
 </project>

Modified: maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java?rev=659011&r1=659010&r2=659011&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
Wed May 21 23:08:44 2008
@@ -37,6 +37,8 @@
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.io.IOException;
+import java.io.BufferedInputStream;
+import java.io.BufferedOutputStream;
 import java.util.Arrays;
 import java.util.List;
 
@@ -72,7 +74,7 @@
 
         try
         {
-            InputStream in = new FileInputStream( file );
+            InputStream in = new BufferedInputStream(new FileInputStream( file ));
 
             inputData.setInputStream( in );
 
@@ -100,7 +102,7 @@
 
         createParentDirectories( file );
 
-        OutputStream outputStream = new LazyFileOutputStream( file );
+        OutputStream outputStream = new BufferedOutputStream(new LazyFileOutputStream( file
));
 
         outputData.setOutputStream( outputStream );
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message