Package org.primefaces.model
Class DefaultStreamedContent
java.lang.Object
org.primefaces.model.DefaultStreamedContent
- All Implemented Interfaces:
Serializable,StreamedContent
Default implementation of a StreamedContent
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getName()InputStreamwhich will be buffered and written to the response.Consumerto write directly to the response.
-
Constructor Details
-
DefaultStreamedContent
public DefaultStreamedContent()
-
-
Method Details
-
getStream
Description copied from interface:StreamedContentInputStreamwhich will be buffered and written to the response.- Specified by:
getStreamin interfaceStreamedContent- Returns:
- the
InputStream
-
getContentType
- Specified by:
getContentTypein interfaceStreamedContent
-
getName
- Specified by:
getNamein interfaceStreamedContent
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceStreamedContent
-
getContentLength
- Specified by:
getContentLengthin interfaceStreamedContent
-
getWriter
Description copied from interface:StreamedContentConsumerto write directly to the response. This method doesn't require buffering and should be preffered overStreamedContent.getStream()from performance perspective.- Specified by:
getWriterin interfaceStreamedContent- Returns:
- The
Consumer
-
builder
-