code: public void setChannel(@Nonnull InputStream in, @Nonnull OutputStream out,
                             @Nonnull TaskListener taskListener,
                             @CheckForNull Channel.Listener listener) throws IOException, InterruptedException {
          setChannel(in,out,taskListener.getLogger(),listener);
      }
docs: Creates a {@link Channel} from the given stream and sets that to this agent.
  
  Same as {@link #setChannel(InputStream, OutputStream, OutputStream, Channel.Listener)}, but for
  {@link TaskListener}.