public final class ResponseBytes<ResponseT> extends Object
| Modifier and Type | Method and Description |
|---|---|
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
UncheckedIOExceptionpublic 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 © 2022. All rights reserved.