public final class ResponseBytes<ResponseT> extends BytesWrapper
getObjectBytes. Can also be retrieved by passing
 ResponseTransformer.toBytes() or AsyncResponseTransformer.toBytes() to a streaming output operation.| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| static <ResponseT> | fromByteArray(ResponseT response,
             byte[] bytes)Create  ResponseBytesfrom a Byte array. | 
| static <ResponseT> | fromByteArrayUnsafe(ResponseT response,
                   byte[] bytes)Create  ResponseBytesfrom a Byte array without copying the contents of the byte array. | 
| static <ResponseT> | fromInputStream(ResponseT response,
               InputStream stream)Create  ResponseBytesfrom a Byte array. | 
| int | hashCode() | 
| ResponseT | response() | 
| String | toString() | 
asByteArray, asByteArrayUnsafe, asByteBuffer, asContentStreamProvider, asInputStream, asString, asUtf8Stringpublic static <ResponseT> ResponseBytes<ResponseT> fromInputStream(ResponseT response, InputStream stream) throws UncheckedIOException
ResponseBytes from a Byte array. This will copy the contents of the byte array.UncheckedIOExceptionpublic static <ResponseT> ResponseBytes<ResponseT> fromByteArray(ResponseT response, byte[] bytes)
ResponseBytes from a Byte array. This will copy the contents of the byte array.public static <ResponseT> ResponseBytes<ResponseT> fromByteArrayUnsafe(ResponseT response, byte[] bytes)
ResponseBytes from a Byte array without copying the contents of the byte array. This introduces
 concurrency risks, allowing: (1) the caller to modify the byte array stored in this SdkBytes implementation AND
 (2) any users of BytesWrapper.asByteArrayUnsafe() to modify the byte array passed into this SdkBytes implementation.
 As the method name implies, this is unsafe. Use fromByteArray(Object, byte[]) unless you're sure you know the
 risks.
public ResponseT response()
public boolean equals(Object o)
equals in class BytesWrapperpublic int hashCode()
hashCode in class BytesWrapperCopyright © 2023. All rights reserved.