public final class SdkBytes extends BytesWrapper implements Serializable
fromByteArray(byte[]). This can be converted to binary types
 via instance methods, like BytesWrapper.asByteArray().| Modifier and Type | Method and Description | 
|---|---|
| static SdkBytes | fromByteArray(byte[] bytes)Create  SdkBytesfrom a Byte array. | 
| static SdkBytes | fromByteBuffer(ByteBuffer byteBuffer)Create  SdkBytesfrom a Byte buffer. | 
| static SdkBytes | fromInputStream(InputStream inputStream)Create  SdkBytesfrom an input stream. | 
| static SdkBytes | fromString(String string,
          Charset charset)Create  SdkBytesfrom a string, using the provided charset. | 
| static SdkBytes | fromUtf8String(String string)Create  SdkBytesfrom a string, using the UTF-8 charset. | 
| String | toString() | 
asByteArray, asByteBuffer, asContentStreamProvider, asInputStream, asString, asUtf8String, equals, hashCodepublic static SdkBytes fromByteBuffer(ByteBuffer byteBuffer)
SdkBytes from a Byte buffer. This will read the remaining contents of the byte buffer.public static SdkBytes fromByteArray(byte[] bytes)
SdkBytes from a Byte array. This will copy the contents of the byte array.public static SdkBytes fromString(String string, Charset charset)
SdkBytes from a string, using the provided charset.public static SdkBytes fromUtf8String(String string)
SdkBytes from a string, using the UTF-8 charset.public static SdkBytes fromInputStream(InputStream inputStream)
SdkBytes from an input stream. This will read all of the remaining contents of the stream, but will not
 close it.Copyright © 2020. All rights reserved.