diff src/goodjava/io/IoUtils.java @ 1494:91c167099462

more io
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 03 May 2020 11:51:31 -0600
parents 471ef3e6a84e
children f04bfbb08721
line wrap: on
line diff
--- a/src/goodjava/io/IoUtils.java	Sun May 03 00:12:15 2020 -0600
+++ b/src/goodjava/io/IoUtils.java	Sun May 03 11:51:31 2020 -0600
@@ -35,17 +35,14 @@
 		Files.createLink( to.toPath(), from.toPath() );
 	}
 
-	public static long copyAll(InputStream in,OutputStream out)
+	public static void copyAll(InputStream in,OutputStream out)
 		throws IOException
 	{
-		long total = 0;
 		byte[] a = new byte[8192];
 		int n;
 		while( (n=in.read(a)) != -1 ) {
 			out.write(a,0,n);
-			total += n;
 		}
-		return total;
 	}
 
 }
\ No newline at end of file