equal
deleted
inserted
replaced
53 System.out.print((char) b); |
53 System.out.print((char) b); |
54 out.append((char) b); |
54 out.append((char) b); |
55 out.notifyAll(); |
55 out.notifyAll(); |
56 } |
56 } |
57 } |
57 } |
|
58 @Override public void write(byte[] b, int off, int len) throws IOException { |
|
59 synchronized (out) { |
|
60 String data = new String(b, off, len); |
|
61 System.out.print(data); |
|
62 out.append(data); |
|
63 out.notifyAll(); |
|
64 } |
|
65 } |
58 }); |
66 }); |
59 Thread runner = new Thread(() -> { |
67 Thread runner = new Thread(() -> { |
60 try { |
68 try { |
61 JavaShellToolBuilder.builder() |
69 JavaShellToolBuilder.builder() |
62 .in(input, input) |
70 .in(input, input) |