commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1091651 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java
Date Wed, 13 Apr 2011 04:58:25 GMT
Author: ggregory
Date: Wed Apr 13 04:58:25 2011
New Revision: 1091651

URL: http://svn.apache.org/viewvc?rev=1091651&view=rev
Log:
Make toString(InputStream input) reuse toString(InputStream input, String encoding).

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

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java?rev=1091651&r1=1091650&r2=1091651&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java Wed Apr 13 04:58:25
2011
@@ -558,9 +558,7 @@ public class IOUtils {
      * @throws IOException if an I/O error occurs
      */
     public static String toString(InputStream input) throws IOException {
-        StringBuilderWriter sw = new StringBuilderWriter();
-        copy(input, sw);
-        return sw.toString();
+        return toString(input, null);
     }
 
     /**



Mime
View raw message