MCPcopy Create free account
hub / github.com/beanshell/beanshell / inPipeWatcher

Method inPipeWatcher

src/bsh/util/AWTConsole.java:291–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 }
290
291 private void inPipeWatcher() throws IOException {
292 if ( inPipe == null ) {
293 PipedOutputStream pout = new PipedOutputStream();
294 out = new PrintStream( pout );
295 inPipe = new PipedInputStream(pout);
296 }
297 byte [] ba = new byte [256]; // arbitrary blocking factor
298 int read;
299 while ( (read = inPipe.read(ba)) != -1 )
300 print( new String(ba, 0, read) );
301
302 println("Console: Input closed...");
303 }
304
305 public void run() {
306 try {

Callers 1

runMethod · 0.95

Calls 3

printMethod · 0.95
printlnMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected