Class RemoteWriter

java.lang.Object
java.io.Writer
hudson.remoting.RemoteWriter
All Implemented Interfaces:
Closeable, Flushable, Serializable, Appendable, AutoCloseable, SerializableOnlyOverRemoting

public final class RemoteWriter extends Writer implements SerializableOnlyOverRemoting
Writer that can be sent over to the remote Channel, so that the remote Callable can write to a local Writer.

Usage

 final Writer out = new RemoteWriter(w);

 channel.call(new Callable() {
   public Object call() {
     // this will write to 'w'.
     out.write(...);
   }
 });
 
Author:
Kohsuke Kawaguchi
See Also: