code: public void setInput(int index, InputStream is) {
          if (index >= inputStreams.length) {
              inputStreams = Arrays.copyOf(inputStreams, index + 1);
          }
          this.inputStreams[index] = is;
      }
docs: Sets the input streams for the expect instance.
  
  @param index the number of the input stream
  @param is    the input stream
  @see net.sf.expectit.ExpectBuilder#withInputs(java.io.InputStream...)