Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- OutputStream out = proc.getOutputStream();
- BufferedOutputStream bos = new BufferedOutputStream(out);
- while (true)
- {
- String s = (String)in.readObject();
- System.out.println(s);
- bos.write(s.getBytes());
- bos.flush();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement