RealResponseBody.java
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.squareup.okhttp.internal.http;
import com.squareup.okhttp.Headers;
import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.ResponseBody;
import okio.BufferedSource;
public final class RealResponseBody
extends ResponseBody
{
private final Headers headers;
private final BufferedSource source;
public RealResponseBody(Headers paramHeaders, BufferedSource paramBufferedSource)
{
this.headers = paramHeaders;
this.source = paramBufferedSource;
}
public final long contentLength()
{
return OkHeaders.contentLength(this.headers);
}
public final MediaType contentType()
{
String str = this.headers.get("Content-Type");
if (str != null) {
return MediaType.parse(str);
}
return null;
}
public final BufferedSource source()
{
return this.source;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/internal/http/RealResponseBody.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/