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.
|
InputStream |
inputStream()
The caller is responsible for closing the returned
InputStream. |
String |
string(Charset charset) |
void |
write(OutputStream stream)
Writes the contents of the body to the given stream.
|
String string(Charset charset) throws IOException
HttpMessage as a stringIOExceptionHttpMessage.BodyInputStream inputStream() throws IOException
InputStream.HttpMessage as a stream of bytesIOExceptionHttpMessage.Bodyvoid write(OutputStream stream) throws IOException
IOExceptionHttpMessage.Bodyvoid dispose()
HttpMessage.BodyCopyright © 2018 Arno Unkrig. All rights reserved.