From: Niki Roo Date: Wed, 24 Apr 2019 06:36:08 +0000 (+0200) Subject: IOUtils: better buffer size X-Git-Tag: fanfix-swing-0.0.1~21^2~132 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=ea152609fcf08aa02e85154e1f9a74a349241483;p=fanfix-swing.git IOUtils: better buffer size --- diff --git a/src/be/nikiroo/utils/IOUtils.java b/src/be/nikiroo/utils/IOUtils.java index c7cbe259..a263eb1e 100644 --- a/src/be/nikiroo/utils/IOUtils.java +++ b/src/be/nikiroo/utils/IOUtils.java @@ -55,7 +55,7 @@ public class IOUtils { */ public static void write(InputStream in, OutputStream out) throws IOException { - byte buffer[] = new byte[4069]; + byte buffer[] = new byte[4096]; for (int len = 0; (len = in.read(buffer)) > 0;) { out.write(buffer, 0, len); }