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()
InputStream
which will be buffered and written to the response.Consumer
to write directly to the response.
-
Constructor Details
-
DefaultStreamedContent
public DefaultStreamedContent()
-
-
Method Details
-
getStream
Description copied from interface:StreamedContent
InputStream
which will be buffered and written to the response.- Specified by:
getStream
in interfaceStreamedContent
- Returns:
- the
InputStream
-
getContentType
- Specified by:
getContentType
in interfaceStreamedContent
-
getName
- Specified by:
getName
in interfaceStreamedContent
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceStreamedContent
-
getContentLength
- Specified by:
getContentLength
in interfaceStreamedContent
-
getWriter
Description copied from interface:StreamedContent
Consumer
to write directly to the response. This method doesn't require buffering and should be preffered overStreamedContent.getStream()
from performance perspective.- Specified by:
getWriter
in interfaceStreamedContent
- Returns:
- The
Consumer
-
builder
-