Output from Process.getInputStream() buffered too long
问题 I have a Java program that uses Process Builder to start an external program. I have a Process Builder with the command, and I use the code below to get the program going. What I want to do is to print out the output just as the external program would have done, and I try to do this with the following code: pb.redirectErrorStream(true); p = pb.start(); InputStream is = p.getInputStream(); InputStreamReader isr = new inputStreamReader(is); BufferedReader br = new BufferedReader(isr, 32); while