public final class ResponseBytes<ResponseT> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
asByteArray() |
byte[] |
asByteArrayUnsafe() |
ByteBuffer |
asByteBuffer() |
static <ResponseT> |
fromByteArray(ResponseT response,
byte[] bytes) |
static <ResponseT> |
fromByteArrayUnsafe(ResponseT response,
byte[] bytes) |
static <ResponseT> |
fromInputStream(ResponseT response,
InputStream stream) |
ResponseT |
response() |
public static <ResponseT> ResponseBytes<ResponseT> fromInputStream(ResponseT response, InputStream stream) throws UncheckedIOException
public static <ResponseT> ResponseBytes<ResponseT> fromByteArray(ResponseT response, byte[] bytes)
public static <ResponseT> ResponseBytes<ResponseT> fromByteArrayUnsafe(ResponseT response, byte[] bytes)
public ResponseT response()
public final ByteBuffer asByteBuffer()
public final byte[] asByteArray()
public final byte[] asByteArrayUnsafe()
Copyright © 2023. All rights reserved.