Java com.squareup.okhttp ResponseBody fields, constructors, methods, implement or subclass

Example usage for Java com.squareup.okhttp ResponseBody fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.squareup.okhttp ResponseBody.

The text is from its open source code.

Subclass

com.squareup.okhttp.ResponseBody has subclasses.
Click this link to see all its subclasses.

Constructor

Method

byte[]bytes()
InputStreambyteStream()
ReadercharStream()
Returns the response as a character stream decoded with the charset of the Content-Type header.
voidclose()
longcontentLength()
Returns the number of bytes in that will returned by #bytes , or #byteStream , or -1 if unknown.
MediaTypecontentType()
ResponseBodycreate(MediaType contentType, String content)
Returns a new response body that transmits content .
ResponseBodycreate(final MediaType contentType, byte[] content)
Returns a new response body that transmits content .
ResponseBodycreate(final MediaType contentType, final long contentLength, final BufferedSource content)
Returns a new response body that transmits content .
BufferedSourcesource()
Stringstring()
Returns the response as a string decoded with the charset of the Content-Type header.