public class ResponseHelper
extends java.lang.Object
| Constructor and Description |
|---|
ResponseHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<com.fasterxml.jackson.databind.JsonNode> |
getArray(retrofit2.Response response,
java.lang.String key) |
static byte[] |
getBuffer(retrofit2.Response response) |
static <T> T |
getValue(retrofit2.Response response,
java.lang.Class<T> clz) |
static <T> T |
getValue(java.lang.String json,
java.lang.Class<T> clz) |
static java.lang.String |
toString(retrofit2.Response response) |
static long |
writeOutput(retrofit2.Response response,
java.io.OutputStream outputStream) |
public static byte[] getBuffer(retrofit2.Response response)
public static java.util.List<com.fasterxml.jackson.databind.JsonNode> getArray(retrofit2.Response response,
java.lang.String key)
public static java.lang.String toString(retrofit2.Response response)
throws java.io.IOException
java.io.IOExceptionpublic static long writeOutput(retrofit2.Response response,
java.io.OutputStream outputStream)
throws java.io.IOException
java.io.IOExceptionpublic static <T> T getValue(java.lang.String json,
java.lang.Class<T> clz)
public static <T> T getValue(retrofit2.Response response,
java.lang.Class<T> clz)
throws java.io.IOException
java.io.IOException