net.spy.memcached.transcoders
Class WhalinTranscoder
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.transcoders.BaseSerializingTranscoder
net.spy.memcached.transcoders.WhalinTranscoder
- All Implemented Interfaces:
- Transcoder<Object>
public class WhalinTranscoder
- extends BaseSerializingTranscoder
- implements Transcoder<Object>
Transcoder that provides compatibility with Greg Whalin's memcached client.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhalinTranscoder
public WhalinTranscoder()
decode
public Object decode(CachedData d)
- Description copied from interface:
Transcoder
- Decode the cached object into the object it represents.
- Specified by:
decode
in interface Transcoder<Object>
- Parameters:
d
- the data
- Returns:
- the return value
encode
public CachedData encode(Object o)
- Description copied from interface:
Transcoder
- Encode the given object for storage.
- Specified by:
encode
in interface Transcoder<Object>
- Parameters:
o
- the object
- Returns:
- the CachedData representing what should be sent
decodeCharacter
protected Character decodeCharacter(byte[] b)
encodeBoolean
public byte[] encodeBoolean(boolean b)
decodeBoolean
public boolean decodeBoolean(byte[] in)