Class BytesHelper

java.lang.Object
org.eclipse.dirigible.commons.api.helpers.BytesHelper

public class BytesHelper
extends Object
The Class BytesHelper.
  • Constructor Details

  • Method Details

    • jsonToBytes

      public static byte[] jsonToBytes​(String input)
      Transform a json string to bytes array.
      Parameters:
      input - the input
      Returns:
      the byte[]
    • bytesToJson

      public static String bytesToJson​(byte[] bytes)
      Transform a bytes array to json string.
      Parameters:
      bytes - the bytes
      Returns:
      the string