Skip to content

Commit e6de594

Browse files
committed
add buffering to process stream
1 parent c375d8c commit e6de594

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)