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