|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lambdaworks.redis.codec.RedisCodec<String,String>
com.lambdaworks.redis.codec.Utf8StringCodec
public class Utf8StringCodec
A RedisCodec that handles UTF-8 encoded keys and values.
| Constructor Summary | |
|---|---|
Utf8StringCodec()
Initialize a new instance that encodes and decodes strings using the UTF-8 charset; |
|
| Method Summary | |
|---|---|
String |
decodeKey(ByteBuffer bytes)
Decode the key output by redis. |
String |
decodeValue(ByteBuffer bytes)
Decode the value output by redis. |
byte[] |
encodeKey(String key)
Encode the key for output to redis. |
byte[] |
encodeValue(String value)
Encode the value for output to redis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utf8StringCodec()
| Method Detail |
|---|
public String decodeKey(ByteBuffer bytes)
RedisCodec
decodeKey in class RedisCodec<String,String>bytes - Raw bytes of the key.
public String decodeValue(ByteBuffer bytes)
RedisCodec
decodeValue in class RedisCodec<String,String>bytes - Raw bytes of the value.
public byte[] encodeKey(String key)
RedisCodec
encodeKey in class RedisCodec<String,String>key - Key.
public byte[] encodeValue(String value)
RedisCodec
encodeValue in class RedisCodec<String,String>value - Value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||