You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by je...@apache.org on 2003/07/25 10:17:10 UTC
cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io IOUtils.java
jeremias 2003/07/25 01:17:10
Modified: io/src/java/org/apache/commons/io IOUtils.java
Log:
Remove already deprecated method.
Revision Changes Path
1.2 +3 -25 jakarta-commons-sandbox/io/src/java/org/apache/commons/io/IOUtils.java
Index: IOUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/io/src/java/org/apache/commons/io/IOUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IOUtils.java 25 Jul 2003 07:51:26 -0000 1.1
+++ IOUtils.java 25 Jul 2003 08:17:10 -0000 1.2
@@ -54,7 +54,6 @@
package org.apache.commons.io;
import java.io.BufferedInputStream;
-import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -112,10 +111,11 @@
* (or three if the destination stream is also buffered) is pointless, and the unnecessary buffer
* management hurts performance slightly (about 3%, according to some simple experiments).</p>
*
+ * <p>Origin of code: Apache Avalon (Excalibur)</p>
+ *
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
* @version CVS $Revision$ $Date$
- * @since 4.0
*/
/*
@@ -652,28 +652,6 @@
{
output.write( input );
}
-
- /**
- * Copy bytes from an <code>InputStream</code> to an
- * <code>OutputStream</code>, with buffering.
- * This is equivalent to passing a
- * {@link java.io.BufferedInputStream} and
- * {@link java.io.BufferedOutputStream} to {@link #copy(InputStream, OutputStream)},
- * and flushing the output stream afterwards. The streams are not closed
- * after the copy.
- * @deprecated Buffering streams is actively harmful! See the class description as to why. Use
- * {@link #copy(InputStream, OutputStream)} instead.
- * @throws IOException In case of an I/O problem
- */
- public static void bufferedCopy( final InputStream input, final OutputStream output )
- throws IOException
- {
- final BufferedInputStream in = new BufferedInputStream( input );
- final BufferedOutputStream out = new BufferedOutputStream( output );
- copy( in, out );
- out.flush();
- }
-
///////////////////////////////////////////////////////////////
// String -> byte[]
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org