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 stringIOException
HttpMessage.Body
InputStream inputStream() throws IOException
InputStream
.HttpMessage
as a stream of bytesIOException
HttpMessage.Body
void write(OutputStream stream) throws IOException
IOException
HttpMessage.Body
void dispose()
HttpMessage.Body
Copyright © 2018 Arno Unkrig. All rights reserved.