git://git.nikiroo.be
/
fanfix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9af739b
)
IOUtils: better buffer size
author
Niki Roo
<niki@nikiroo.be>
Wed, 24 Apr 2019 06:36:08 +0000
(08:36 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Wed, 24 Apr 2019 06:36:08 +0000
(08:36 +0200)
src/be/nikiroo/utils/IOUtils.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/utils/IOUtils.java
b/src/be/nikiroo/utils/IOUtils.java
index c7cbe259b5abab2e0d65d7639b83641eddd7a357..a263eb1ea17ea59e5a5a605c2cde91337aefe6ac 100644
(file)
--- 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[40
69
];
+ byte buffer[] = new byte[40
96
];
for (int len = 0; (len = in.read(buffer)) > 0;) {
out.write(buffer, 0, len);
}