To have a local machine write to a remote {@link OutputStream}:
OutputStream os = channel.call(new Callable() { public Object call() { OutputStream os = new FileOutputStream(...); // or any other OutputStream return new RemoteOutputStream(os); } });
@see RemoteInputStream
@author Kohsuke Kawaguchi
| |
| |