Package 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 anOutputStream. Useful with HTTP client libraries that provide indirect access to anOutputStreamvia a callback mechanism.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwriteTo(OutputStream outputStream)Write this body to the givenOutputStream.
Method Detail
writeTo
void writeTo(OutputStream outputStream) throws IOException
Write this body to the givenOutputStream.- Parameters:
outputStream- the output stream to write to- Throws:
IOException- in case of I/O errors