net.rubyeye.xmemcached.transcoders
Class WhalinV1Transcoder
java.lang.Object
net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
net.rubyeye.xmemcached.transcoders.WhalinV1Transcoder
- All Implemented Interfaces:
- Transcoder<java.lang.Object>
public class WhalinV1Transcoder
- extends BaseSerializingTranscoder
- implements Transcoder<java.lang.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPECIAL_BYTE
public static final int SPECIAL_BYTE
- See Also:
- Constant Field Values
SPECIAL_BOOLEAN
public static final int SPECIAL_BOOLEAN
- See Also:
- Constant Field Values
SPECIAL_INTEGER
public static final int SPECIAL_INTEGER
- See Also:
- Constant Field Values
SPECIAL_LONG
public static final int SPECIAL_LONG
- See Also:
- Constant Field Values
SPECIAL_CHARACTER
public static final int SPECIAL_CHARACTER
- See Also:
- Constant Field Values
SPECIAL_STRING
public static final int SPECIAL_STRING
- See Also:
- Constant Field Values
SPECIAL_STRINGBUFFER
public static final int SPECIAL_STRINGBUFFER
- See Also:
- Constant Field Values
SPECIAL_FLOAT
public static final int SPECIAL_FLOAT
- See Also:
- Constant Field Values
SPECIAL_SHORT
public static final int SPECIAL_SHORT
- See Also:
- Constant Field Values
SPECIAL_DOUBLE
public static final int SPECIAL_DOUBLE
- See Also:
- Constant Field Values
SPECIAL_DATE
public static final int SPECIAL_DATE
- See Also:
- Constant Field Values
SPECIAL_STRINGBUILDER
public static final int SPECIAL_STRINGBUILDER
- See Also:
- Constant Field Values
COMPRESSED
public static final int COMPRESSED
- See Also:
- Constant Field Values
SERIALIZED
public static final int SERIALIZED
- See Also:
- Constant Field Values
WhalinV1Transcoder
public WhalinV1Transcoder()
setPackZeros
public void setPackZeros(boolean packZeros)
- Description copied from interface:
Transcoder
- Set whether pack zeros
- Specified by:
setPackZeros in interface Transcoder<java.lang.Object>
setPrimitiveAsString
public void setPrimitiveAsString(boolean primitiveAsString)
- Description copied from interface:
Transcoder
- Set whether store primitive type as string.
- Specified by:
setPrimitiveAsString in interface Transcoder<java.lang.Object>
isPackZeros
public boolean isPackZeros()
- Specified by:
isPackZeros in interface Transcoder<java.lang.Object>
isPrimitiveAsString
public boolean isPrimitiveAsString()
- Specified by:
isPrimitiveAsString in interface Transcoder<java.lang.Object>
encode
public CachedData encode(java.lang.Object o)
- Description copied from interface:
Transcoder
- Encode the given object for storage.
- Specified by:
encode in interface Transcoder<java.lang.Object>
- Parameters:
o - the object
- Returns:
- the CachedData representing what should be sent
decode
public java.lang.Object decode(CachedData d)
- Description copied from interface:
Transcoder
- Decode the cached object into the object it represents.
- Specified by:
decode in interface Transcoder<java.lang.Object>
- Parameters:
d - the data
- Returns:
- the return value
Copyright © 2011. All Rights Reserved.