Class BytesHelper
java.lang.Object
org.eclipse.dirigible.commons.api.helpers.BytesHelper
public class BytesHelper extends Object
The Class BytesHelper.
-
Constructor Summary
Constructors Constructor Description BytesHelper() -
Method Summary
Modifier and Type Method Description static StringbytesToJson(byte[] bytes)Transform a bytes array to json string.static byte[]jsonToBytes(String input)Transform a json string to bytes array.
-
Constructor Details
-
BytesHelper
public BytesHelper()
-
-
Method Details
-
jsonToBytes
Transform a json string to bytes array.- Parameters:
input- the input- Returns:
- the byte[]
-
bytesToJson
Transform a bytes array to json string.- Parameters:
bytes- the bytes- Returns:
- the string
-