-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class RealResponseBody extends ResponseBody
-
-
Constructor Summary
Constructors Constructor Description RealResponseBody(String contentTypeString, long contentLength, BufferedSource source)
-
Method Summary
Modifier and Type Method Description MediaTypecontentType()longcontentLength()Returns the number of bytes in that will returned by bytes, or byteStream, or-1 if unknown. BufferedSourcesource()-
Methods inherited from class com.mobwith.httpmodule.ResponseBody
byteStream, bytes, charStream, close, create, create, create, string -
Methods inherited from class java.io.Closeable
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RealResponseBody
RealResponseBody(String contentTypeString, long contentLength, BufferedSource source)
-
-
Method Detail
-
contentType
MediaType contentType()
-
contentLength
long contentLength()
Returns the number of bytes in that will returned by bytes, or byteStream, or-1 if unknown.
-
source
BufferedSource source()
-
-
-
-