Class CodecUtils
java.lang.Object
software.amazon.awssdk.utils.internal.CodecUtils
Codec internal utilities
- 
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]toBytesDirect(String singleOctets) Returns a byte array representing the given string, truncating each character into a byte directly.static StringtoStringDirect(byte[] bytes) Returns a string representing the given byte array, treating each byte as a single octet character. 
- 
Method Details
- 
toBytesDirect
Returns a byte array representing the given string, truncating each character into a byte directly.- Throws:
 IllegalArgumentException- if the input string contains any multi-octet character
 - 
toStringDirect
Returns a string representing the given byte array, treating each byte as a single octet character. 
 -