public class StringEncoder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(java.lang.String s)
Converts a string to a UTF-8 byte array.
|
static java.lang.String |
getString(byte[] bytes)
Converts a UTF-8 byte array to a string.
|
public static byte[] getBytes(java.lang.String s)
s - The input string.public static java.lang.String getString(byte[] bytes)
bytes - The input byte array.