Class SafeEncoder

java.lang.Object
redis.clients.jedis.util.SafeEncoder

public final class SafeEncoder extends Object
The only reason to have this is to be able to compatible with java 1.5 :(
  • Field Details

    • DEFAULT_CHARSET

      public static volatile Charset DEFAULT_CHARSET
  • Constructor Details

    • SafeEncoder

      private SafeEncoder()
  • Method Details

    • encodeMany

      public static byte[][] encodeMany(String... strs)
    • encode

      public static byte[] encode(String str)
    • encode

      public static String encode(byte[] data)
    • encodeObject

      public static Object encodeObject(Object dataToEncode)
      This method takes an object and will convert all bytes[] and list of byte[] and will encode the object in a recursive way.
      Parameters:
      dataToEncode -
      Returns:
      the object fully encoded