public class BinaryBody extends BodyWithContentType<byte[]>
contentType| Constructor and Description |
|---|
BinaryBody(byte[] bytes) |
BinaryBody(byte[] bytes,
com.google.common.net.MediaType contentType) |
| Modifier and Type | Method and Description |
|---|---|
static BinaryBody |
binary(byte[] body) |
static BinaryBody |
binary(byte[] body,
com.google.common.net.MediaType contentType) |
byte[] |
getRawBytes() |
byte[] |
getValue() |
String |
toString() |
getCharset, getContentTypeequals, fieldsExcludedFromEqualsAndHashCode, hashCode, keypublic BinaryBody(byte[] bytes)
public BinaryBody(byte[] bytes,
com.google.common.net.MediaType contentType)
public static BinaryBody binary(byte[] body)
public static BinaryBody binary(byte[] body, com.google.common.net.MediaType contentType)
public byte[] getRawBytes()
getRawBytes in class Bodypublic String toString()
toString in class ObjectWithJsonToStringCopyright © 2018. All rights reserved.