public class BinaryBody extends BodyWithContentType<byte[]>
contentType
Constructor and Description |
---|
BinaryBody(byte[] bytes) |
BinaryBody(byte[] bytes,
MediaType contentType) |
Modifier and Type | Method and Description |
---|---|
static BinaryBody |
binary(byte[] body) |
static BinaryBody |
binary(byte[] body,
MediaType contentType) |
boolean |
equals(Object o) |
byte[] |
getRawBytes() |
byte[] |
getValue() |
int |
hashCode() |
String |
toString() |
getCharset, getContentType
getOptional, getType, withOptional
fieldsExcludedFromEqualsAndHashCode
public BinaryBody(byte[] bytes)
public BinaryBody(byte[] bytes, MediaType contentType)
public static BinaryBody binary(byte[] body)
public static BinaryBody binary(byte[] body, MediaType contentType)
public byte[] getRawBytes()
getRawBytes
in class Body<byte[]>
public String toString()
toString
in class ObjectWithJsonToString
public boolean equals(Object o)
equals
in class BodyWithContentType<byte[]>
public int hashCode()
hashCode
in class BodyWithContentType<byte[]>
Copyright © 2022. All rights reserved.