org.springframework.http
Interface StreamingHttpOutputMessage.Body
- Enclosing interface:
- StreamingHttpOutputMessage
public static interface StreamingHttpOutputMessage.Body
Defines the contract for bodies that can be written directly to a
OutputStream
. It is useful with HTTP client libraries that provide indirect
access to an OutputStream
via a callback mechanism.
Method Summary |
void |
writeTo(java.io.OutputStream outputStream)
Writes this body to the given OutputStream . |
writeTo
void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
- Writes this body to the given
OutputStream
.
- Parameters:
outputStream
- the output stream to write to
- Throws:
java.io.IOException
- in case of errors