Skip to content

Commit a4b246e

Browse files
committed
Reuse IOUtils.copyLarge()
1 parent e5ca262 commit a4b246e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/org/apache/commons/net/examples/util

src/main/java/org/apache/commons/net/examples/util/IOUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.io.InputStream;
2222
import java.io.OutputStream;
2323

24-
import org.apache.commons.net.io.Util;
24+
import org.apache.commons.io.IOUtils;
2525
import org.apache.commons.net.util.NetConstants;
2626

2727
/**
@@ -48,7 +48,7 @@ public static void readWrite(final InputStream remoteInput, final OutputStream r
4848
});
4949
writerThread = new Thread(() -> {
5050
try {
51-
Util.copyStream(remoteInput, localOutput);
51+
IOUtils.copyLarge(remoteInput, localOutput);
5252
} catch (final IOException e) {
5353
e.printStackTrace();
5454
System.exit(1);

0 commit comments

Comments
 (0)