code: public ReadableByteChannel reset(ReadableByteChannel channel)
              throws IOException
      {
          ReadableByteChannel old = this.channel;
          this.channel = channel;
          return old;
      }
docs: Reset channel. This method doesn't close the old resource.
  
  @param channel new channel
  @return the old resource