javax.ws.rs.core
Interface StreamingOutput
public interface StreamingOutput
A type that may be used as a resource method return value or as the entity
in a Response
when
the application wishes to stream the output. This is lightweight alternative
to a MessageBodyWriter
.
- See Also:
MessageBodyWriter
,
Response
Method Summary |
void |
write(java.io.OutputStream output)
Called to write the message body. |
write
void write(java.io.OutputStream output)
throws java.io.IOException
- Called to write the message body.
- Parameters:
output
- the OutputStream to write to.
- Throws:
java.io.IOException
- if an IO error is encountered