Package kong.unirest.core
Class ByteResponse
java.lang.Object
kong.unirest.core.BaseResponse<byte[]>
kong.unirest.core.ByteResponse
- All Implemented Interfaces:
HttpResponse<byte[]>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBody()
static byte[]
getBytes
(InputStream is) protected String
static boolean
Methods inherited from class kong.unirest.core.BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
body
private final byte[] body
-
-
Constructor Details
-
ByteResponse
-
-
Method Details
-
getBytes
- Throws:
IOException
-
isGzipped
-
getBody
public byte[] getBody()- Specified by:
getBody
in interfaceHttpResponse<byte[]>
- Specified by:
getBody
in classBaseResponse<byte[]>
- Returns:
- the body
-
getRawBody
- Specified by:
getRawBody
in classBaseResponse<byte[]>
-