Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. try
  2. {
  3. OutputStream out = proc.getOutputStream();
  4. BufferedOutputStream bos = new BufferedOutputStream(out);
  5. while (true)
  6. {
  7. String s = (String)in.readObject();
  8. System.out.println(s);
  9.  
  10. bos.write(s.getBytes());
  11. bos.flush();
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement