public class StreamingWriterOutput extends Object implements javax.ws.rs.core.StreamingOutput
OutputStreamWriters.StreamingOutput| Modifier and Type | Method and Description |
|---|---|
static StreamingWriterOutput |
with(Consumer<OutputStreamWriter> consumer)
Creates a new
StreamingWriterOutput that will execute the provided function when
writing the output. |
void |
write(OutputStream output) |
public static StreamingWriterOutput with(Consumer<OutputStreamWriter> consumer)
StreamingWriterOutput that will execute the provided function when
writing the output. The writer provided to the function will use the UTF-8 charset.public void write(OutputStream output) throws IOException, javax.ws.rs.WebApplicationException
write in interface javax.ws.rs.core.StreamingOutputIOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2018 Cerner Innovation, Inc.. All rights reserved.