Returns a zero-length array.
Returns a zero-length array.
Returns a blank string.
Returns a blank string.
Closes the input stream that provides the data for this response.
Closes the input stream that provides the data for this response. If the implementation buffers the body, the input stream will have been closed automatically.
Returns 0.
Returns 0.
Gets the content type and encoding of the response.
Gets the content type and encoding of the response.
Returns a new empty InputStream.
Returns a new empty InputStream.
Tests whether the implementation has buffered the whole response body.
Tests whether the implementation has buffered the whole response body. If this returns false, toBufferedBody
provides an easy route to accumulate the entire body in a buffer.
Tests whether this response body can be represented as text, or whether the data is binary.
Tests whether this response body can be represented as text, or whether the data is binary.
Always false.
Always false.
Gets the body as a string split into lines, if available.
Gets the body as a string split into lines, if available. This is only possible for textual content. An IllegalStateException is thrown if the data is binary.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Returns this
.
Returns this
.
Gets the response body as a string for diagnostic purposes.
Gets the response body as a string for diagnostic purposes.
Returns this
.
Returns this
.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Provides an empty
ResponseBody
implementation.