code: public static void write(InputStream in, Path path, StandardCopyOption op) {
          try {
              Files.copy(in, path, op);
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: <p>write.</p>
  
  @param in a {@link java.io.InputStream} object.
  @param path a {@link java.nio.file.Path} object.
  @param op a {@link java.nio.file.StandardCopyOption} object.