Package org.primefaces.model
Interface StreamedContent
- All Known Implementing Classes:
DefaultStreamedContent
public interface StreamedContent
-
Method Summary
Modifier and TypeMethodDescriptiongetName()InputStreamwhich will be buffered and written to the response.Consumerto write directly to the response.
-
Method Details
-
getName
String getName() -
getContentType
String getContentType() -
getContentEncoding
String getContentEncoding() -
getContentLength
Long getContentLength() -
getStream
Supplier<InputStream> getStream()InputStreamwhich will be buffered and written to the response.- Returns:
- the
InputStream
-
getWriter
Consumer<OutputStream> getWriter()Consumerto write directly to the response. This method doesn't require buffering and should be preffered overgetStream()from performance perspective.- Returns:
- The
Consumer
-