commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1480284 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
Date Wed, 08 May 2013 14:17:33 GMT
Author: sebb
Date: Wed May  8 14:17:33 2013
New Revision: 1480284

URL: http://svn.apache.org/r1480284
Log:
IO-380 FileUtils.copyInputStreamToFile should document it closes the input source

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1480284&r1=1480283&r2=1480284&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java Wed May  8
14:17:33 2013
@@ -1497,8 +1497,9 @@ public class FileUtils {
      * <code>destination</code>. The directories up to <code>destination</code>
      * will be created if they don't already exist. <code>destination</code>
      * will be overwritten if it already exists.
+     * The {@code source} stream is closed.
      *
-     * @param source  the <code>InputStream</code> to copy bytes from, must not
be {@code null}
+     * @param source  the <code>InputStream</code> to copy bytes from, must not
be {@code null}, will be closed
      * @param destination  the non-directory <code>File</code> to write bytes
to
      *  (possibly overwriting), must not be {@code null}
      * @throws IOException if <code>destination</code> is a directory



Mime
View raw message