Class EncodingUtils

java.lang.Object
org.infinispan.commons.dataconversion.EncodingUtils

public final class EncodingUtils extends Object
Deprecated.
Use the org.infinispan.encoding.DataConversion obtained from the AdvancedCache.
Utilities to encode/decode keys and values from caches.
Since:
9.1
  • Method Details

    • fromStorage

      public static Object fromStorage(Object stored, Encoder encoder, Wrapper wrapper)
      Deprecated.
      Decode object from storage format.
      Parameters:
      stored - Object in the storage format.
      encoder - the Encoder used for data conversion.
      wrapper - the Wrapper used to decorate the converted data.
      Returns:
      Object decoded and unwrapped.
    • toStorage

      public static Object toStorage(Object toStore, Encoder encoder, Wrapper wrapper)
      Deprecated.
      Encode object to storage format.
      Parameters:
      toStore - Object to be encoded.
      encoder - the Encoder used for data conversion.
      wrapper - the Wrapper used to decorate the converted data.
      Returns:
      Object decoded and unwrapped.