Package redis.clients.jedis.util
Class SafeEncoder
java.lang.Object
redis.clients.jedis.util.SafeEncoder
The only reason to have this is to be able to compatible with java 1.5 :(
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringencode(byte[] data) static byte[]static byte[][]encodeMany(String... strs) static ObjectencodeObject(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.
-
Field Details
-
DEFAULT_CHARSET
-
-
Constructor Details
-
SafeEncoder
private SafeEncoder()
-
-
Method Details
-
encodeMany
-
encode
-
encode
-
encodeObject
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
-