public static interface HttpMessage.Body
HttpMessage.Body is as follows:
dispose() as many times as you want
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases any resources associated with this object.
|
java.io.InputStream |
inputStream()
The caller is responsible for closing the returned
InputStream. |
java.lang.String |
string(java.nio.charset.Charset charset) |
void |
write(java.io.OutputStream stream)
Writes the contents of the body to the given stream.
|
java.lang.String string(java.nio.charset.Charset charset)
throws java.io.IOException
HttpMessage as a stringjava.io.IOExceptionHttpMessage.Bodyjava.io.InputStream inputStream()
throws java.io.IOException
InputStream.HttpMessage as a stream of bytesjava.io.IOExceptionHttpMessage.Bodyvoid write(java.io.OutputStream stream)
throws java.io.IOException
java.io.IOExceptionHttpMessage.Bodyvoid dispose()
HttpMessage.Body