Package net.spy.memcached.transcoders
Class WhalinV1Transcoder
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.transcoders.BaseSerializingTranscoder
net.spy.memcached.transcoders.WhalinV1Transcoder
- All Implemented Interfaces:
Transcoder<Object>
Handles old whalin (tested with v1.6) encoding: data type is in the first
byte of the value.
- Since:
- Oct 16, 2008
- Author:
- bpartensky
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields 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.Encode the given object for storage.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
-
Field Details
-
SPECIAL_BYTE
public static final int SPECIAL_BYTE- See Also:
-
SPECIAL_BOOLEAN
public static final int SPECIAL_BOOLEAN- See Also:
-
SPECIAL_INTEGER
public static final int SPECIAL_INTEGER- See Also:
-
SPECIAL_LONG
public static final int SPECIAL_LONG- See Also:
-
SPECIAL_CHARACTER
public static final int SPECIAL_CHARACTER- See Also:
-
SPECIAL_STRING
public static final int SPECIAL_STRING- See Also:
-
SPECIAL_STRINGBUFFER
public static final int SPECIAL_STRINGBUFFER- See Also:
-
SPECIAL_FLOAT
public static final int SPECIAL_FLOAT- See Also:
-
SPECIAL_SHORT
public static final int SPECIAL_SHORT- See Also:
-
SPECIAL_DOUBLE
public static final int SPECIAL_DOUBLE- See Also:
-
SPECIAL_DATE
public static final int SPECIAL_DATE- See Also:
-
SPECIAL_STRINGBUILDER
public static final int SPECIAL_STRINGBUILDER- See Also:
-
COMPRESSED
public static final int COMPRESSED- See Also:
-
SERIALIZED
public static final int SERIALIZED- See Also:
-
-
Constructor Details
-
WhalinV1Transcoder
public WhalinV1Transcoder()
-
-
Method Details
-
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
-
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
-