docs: public static void copyTo(InputStream in, OutputStream out) throws IOException {
          Objects.requireNonNull(in);
          Objects.requireNonNull(out);
  
          int r;
          while ((r = in.read()) != -1) {
              out.write(r);
          }
  
          out.flush();
      }