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