Class SerializerUtil

java.lang.Object
com.espertech.esper.common.internal.util.SerializerUtil

public class SerializerUtil extends Object
  • Constructor Details

    • SerializerUtil

      public SerializerUtil()
  • Method Details

    • objectToByteArr

      public static byte[] objectToByteArr(Object underlying)
      Serialize object to byte array.
      Parameters:
      underlying - to serialize
      Returns:
      byte array
    • byteArrToObject

      public static Object byteArrToObject(byte[] bytes)
      Deserialize byte arry to object.
      Parameters:
      bytes - to read
      Returns:
      object
    • objectToByteArrBase64

      public static String objectToByteArrBase64(Serializable userObject)
    • byteArrBase64ToObject

      public static Object byteArrBase64ToObject(String base64)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      base64 - encoded string
      Returns:
      object
    • expressionForUserObject

      public static CodegenExpression expressionForUserObject(Object userObject)