Skip to content

Commit dcc3ca2

Browse files
authored
Merge pull request #2026 from tarzanek/master
add buffering to process stream
2 parents c375d8c + e6de594 commit dcc3ca2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/org/opensolaris/opengrok/util/Executor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
package org.opensolaris.opengrok.util;
2525

26+
import java.io.BufferedInputStream;
2627
import java.io.ByteArrayInputStream;
2728
import java.io.ByteArrayOutputStream;
2829
import java.io.File;
@@ -356,7 +357,9 @@ public byte[] getBytes() {
356357
}
357358

358359
@Override
359-
public void processStream(InputStream in) throws IOException {
360+
public void processStream(InputStream input) throws IOException {
361+
BufferedInputStream in = new BufferedInputStream(input);
362+
360363
byte[] buffer = new byte[8092];
361364
int len;
362365

0 commit comments

Comments
 (0)