public class BytesHelper extends Object
| Constructor and Description |
|---|
BytesHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToJson(byte[] bytes)
Transform a bytes array to json string.
|
static byte[] |
jsonToBytes(String input)
Transform a json string to bytes array.
|
public static byte[] jsonToBytes(String input)
input - the inputpublic static String bytesToJson(byte[] bytes)
bytes - the bytesCopyright © 2010–2018 Eclipse Foundation. All rights reserved.