IOUtils: better buffer size
authorNiki Roo <niki@nikiroo.be>
Wed, 24 Apr 2019 06:36:08 +0000 (08:36 +0200)
committerNiki Roo <niki@nikiroo.be>
Wed, 24 Apr 2019 06:36:08 +0000 (08:36 +0200)
src/be/nikiroo/utils/IOUtils.java

index c7cbe259b5abab2e0d65d7639b83641eddd7a357..a263eb1ea17ea59e5a5a605c2cde91337aefe6ac 100644 (file)
@@ -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);
                }