public class ByteArrayResponseBody extends Object implements ResponseBody
| 构造器和说明 |
|---|
ByteArrayResponseBody(byte[] content,
ContentType contentType,
Header contentEncoding) |
ByteArrayResponseBody(byte[] content,
ContentType contentType,
Header contentEncoding,
Iterable<ResponseBodyEncoder> encoders) |
ByteArrayResponseBody(byte[] content,
ContentType contentType,
Header contentEncoding,
ResponseBodyEncoder... encoders) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
asBytes() |
String |
asText(Charset charset) |
boolean |
equals(Object o) |
InputStream |
getContent() |
Header |
getContentEncoding() |
ContentType |
getContentType() |
InputStream |
getOriginalContent() |
int |
hashCode() |
<T> T |
toJsonObject(Class<T> type,
Charset charset) |
asText, getCharset, toJsonObject, writeTo, writeTopublic ByteArrayResponseBody(@Nonnull
byte[] content,
ContentType contentType,
Header contentEncoding)
public ByteArrayResponseBody(@Nonnull
byte[] content,
ContentType contentType,
Header contentEncoding,
ResponseBodyEncoder... encoders)
public ByteArrayResponseBody(@Nonnull
byte[] content,
ContentType contentType,
Header contentEncoding,
Iterable<ResponseBodyEncoder> encoders)
@Nonnull public InputStream getContent()
getContent 在接口中 ResponseBody@Nonnull public InputStream getOriginalContent()
getOriginalContent 在接口中 ResponseBodypublic ContentType getContentType()
getContentType 在接口中 ResponseBodypublic Header getContentEncoding()
getContentEncoding 在接口中 ResponseBodypublic String asText(@Nonnull Charset charset)
asText 在接口中 ResponseBodypublic byte[] asBytes()
asBytes 在接口中 ResponseBodypublic <T> T toJsonObject(@Nonnull
Class<T> type,
@Nonnull
Charset charset)
toJsonObject 在接口中 ResponseBodyCopyright © 2024. All rights reserved.