From: Niki Roo Date: Wed, 24 Apr 2019 06:36:08 +0000 (+0200) Subject: IOUtils: better buffer size X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=commitdiff_plain;h=ea152609fcf08aa02e85154e1f9a74a349241483 IOUtils: better buffer size --- diff --git a/src/be/nikiroo/utils/IOUtils.java b/src/be/nikiroo/utils/IOUtils.java index c7cbe25..a263eb1 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); }