Author: scolebourne
Date: Sat Oct  7 05:52:32 2006
New Revision: 453893

URL: http://svn.apache.org/viewvc?view=rev&rev=453893
Log:
IO-84 - IOUtils.copy - Comment about result byte/char count being limited to an 
int, thus being inacurate for large streams

Modified:
    jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt
    jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java

Modified: jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt?view=diff&rev=453893&r1=453892&r2=453893
==============================================================================
--- jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt Sat Oct  7 05:52:32 2006
@@ -59,6 +59,10 @@
 - FileCleaner
   - This now handles the situation where an error occurs when deleting the file
 
+- IOUtils.copy [IO-84]
+  - Comment about result byte/char count being limited to an int, thus
+    being inacurate for large streams
+
 
 Enhancements from 1.2
 ---------------------

Modified: 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java?view=diff&rev=453893&r1=453892&r2=453893
==============================================================================
--- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java 
(original)
+++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java 
Sat Oct  7 05:52:32 2006
@@ -981,6 +981,9 @@
      * <p>
      * This method buffers the input internally, so there is no need to use a
      * <code>BufferedInputStream</code>.
+     * <p>
+     * Large streams (over 2GB) will return an inaccurate result count as the
+     * type is an int. The copy will complete correctly however.
      * 
      * @param input  the <code>InputStream</code> to read from
      * @param output  the <code>OutputStream</code> to write to
@@ -1058,6 +1061,9 @@
      * <p>
      * This method buffers the input internally, so there is no need to use a
      * <code>BufferedReader</code>.
+     * <p>
+     * Large streams (over 2GB) will return an inaccurate result count as the
+     * type is an int. The copy will complete correctly however.
      *
      * @param input  the <code>Reader</code> to read from
      * @param output  the <code>Writer</code> to write to



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to