title: PrimeFaces 8.0 DefaultStreamedContent.builder().stream() asks for SerializableSupplier<InputStream>
body: <p>In PrimeFaces 8.0 the <code>DefaultStreamedContent</code> cannot be initialized like <code>new DefaultStreamedContent(inputStream, contentType, name)</code> because it has been deprecated, instead you shound use <code>DefaultStreamedContent.builder()</code>.</p>
  
  <p>Although while doing <code>.stream()</code> it asks for a <code>SerializableSupplier&lt;InputStream&gt;</code> instead of an <code>InputStream</code> like in the version before 8.0.</p>
  
  <pre><code>DefaultStreamedContent.builder().contentType(contentType).name(name).stream(is).build();
                                                                              ^^
  </code></pre>
  
  <p>How can I convert a <code>InputStream</code> to a <code>SerializableSupplier</code>?</p>