@Override public void run() { try { byte[] buf = new byte[1024]; int read; while ((read = in.read(buf)) != -1) { out.write(buf, 0, read); } } catch (IOException e) { throw new RuntimeException("Error reading input from child process", e); } } }
@Override public void run() { try { byte[] buf = new byte[1024]; int read; while ((read = in.read(buf)) != -1) { out.write(buf, 0, read); } } catch (IOException e) { throw new RuntimeException("Error reading input from child process", e); } } }