public final class CodecUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
toBytesDirect(String singleOctets)
Returns a byte array representing the given string,
 truncating each character into a byte directly. 
 | 
static String | 
toStringDirect(byte[] bytes)
Returns a string representing the given byte array,
 treating each byte as a single octet character. 
 | 
public static byte[] toBytesDirect(String singleOctets)
IllegalArgumentException - if the input string contains any multi-octet characterpublic static String toStringDirect(byte[] bytes)
Copyright © 2022. All rights reserved.