diff src/goodjava/io/IoUtils.java @ 2008:bba3e529e346 default tip

chunked encoding
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 27 Aug 2025 01:14:17 -0600
parents ad312de2a30e
children
line wrap: on
line diff
--- a/src/goodjava/io/IoUtils.java	Mon Jul 28 23:47:43 2025 -0600
+++ b/src/goodjava/io/IoUtils.java	Wed Aug 27 01:14:17 2025 -0600
@@ -81,7 +81,7 @@
 	public static void copyAll(InputStream in,OutputStream out)
 		throws IOException
 	{
-		byte[] a = new byte[8192];
+		byte[] a = new byte[32768];
 		int n;
 		while( (n=in.read(a)) != -1 ) {
 			out.write(a,0,n);
@@ -92,7 +92,7 @@
 	public static void copyAll(Reader in,Writer out)
 		throws IOException
 	{
-		char[] a = new char[8192];
+		char[] a = new char[32768];
 		int n;
 		while( (n=in.read(a)) != -1 ) {
 			out.write(a,0,n);