commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mart...@apache.org
Subject svn commit: r356312 - /jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/disk/DiskFileItem.java
Date Mon, 12 Dec 2005 18:09:04 GMT
Author: martinc
Date: Mon Dec 12 10:09:00 2005
New Revision: 356312

URL: http://svn.apache.org/viewcvs?rev=356312&view=rev
Log:
Bugzilla #37865 - Use non-deprecated IO methods.

Modified:
    jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/disk/DiskFileItem.java

Modified: jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/disk/DiskFileItem.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/disk/DiskFileItem.java?rev=356312&r1=356311&r2=356312&view=diff
==============================================================================
--- jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/disk/DiskFileItem.java
(original)
+++ jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/disk/DiskFileItem.java
Mon Dec 12 10:09:00 2005
@@ -29,7 +29,7 @@
 import java.io.UnsupportedEncodingException;
 import java.rmi.server.UID;
 import java.util.Map;
-import org.apache.commons.io.CopyUtils;
+import org.apache.commons.io.IOUtils;
 import org.apache.commons.io.FileCleaner;
 import org.apache.commons.io.output.DeferredFileOutputStream;
 
@@ -401,7 +401,7 @@
                             new FileInputStream(outputFile));
                         out = new BufferedOutputStream(
                                 new FileOutputStream(file));
-                        CopyUtils.copy(in, out);
+                        IOUtils.copy(in, out);
                     } finally {
                         if (in != null) {
                             try {
@@ -669,7 +669,7 @@
         } else {
             FileInputStream input = new FileInputStream(dfosFile);
 
-            CopyUtils.copy(input, output);
+            IOUtils.copy(input, output);
             dfosFile.delete();
             dfosFile = null;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message