code: public static InputStreamResource inputStreamResource(final String path,
                                                            final SupplierWithThrowable<InputStream, IOException> supplier) {
          return new InputStreamResource(path, supplier);
      }
docs: Create resources from input stream.
  
  @param path     The path name for this resource.
  @param supplier The input stream to supply content.
  @return a readable resource that reads from provided input stream.