public interface StreamingOutput
Response
when the application wishes to stream the output.
This is a lightweight alternative to a
MessageBodyWriter
.MessageBodyWriter
,
Response
Modifier and Type | Method and Description |
---|---|
void |
write(java.io.OutputStream output)
Called to write the message body.
|
void write(java.io.OutputStream output) throws java.io.IOException, WebApplicationException
output
- the OutputStream to write to.java.io.IOException
- if an IO error is encounteredWebApplicationException
- if a specific
HTTP error response needs to be produced. Only effective if thrown prior
to any bytes being written to output.Copyright © 2016 Oracle Corporation. All Rights Reserved.