Package 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>
Transcoder that provides compatibility with Greg Whalin's memcached client.
-
Field Summary
Fields inherited from class net.spy.memcached.transcoders.BaseSerializingTranscoder
charset, compressionThreshold, DEFAULT_COMPRESSION_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(CachedData d) Decode the cached object into the object it represents.booleandecodeBoolean(byte[] in) protected CharacterdecodeCharacter(byte[] b) Encode the given object for storage.byte[]encodeBoolean(boolean b) Methods inherited from class net.spy.memcached.transcoders.BaseSerializingTranscoder
asyncDecode, compress, decodeString, decompress, deserialize, encodeString, getMaxSize, serialize, setCharset, setCompressionThresholdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.spy.memcached.transcoders.Transcoder
asyncDecode, getMaxSize
-
Constructor Details
-
WhalinTranscoder
public WhalinTranscoder()
-
-
Method Details
-
decode
Description copied from interface:TranscoderDecode the cached object into the object it represents.- Specified by:
decodein interfaceTranscoder<Object>- Parameters:
d- the data- Returns:
- the return value
-
encode
Description copied from interface:TranscoderEncode the given object for storage.- Specified by:
encodein interfaceTranscoder<Object>- Parameters:
o- the object- Returns:
- the CachedData representing what should be sent
-
decodeCharacter
-
encodeBoolean
public byte[] encodeBoolean(boolean b) -
decodeBoolean
public boolean decodeBoolean(byte[] in)
-