code: public void copyFrom(InputStream in) throws IOException, InterruptedException {
          try (OutputStream os = write()) {
              org.apache.commons.io.IOUtils.copy(in, os);
          }
      }
docs: Replaces the content of this file by the data from the given {@link InputStream}.
  
  @since 1.293