Class StringTranscoder
java.lang.Object
net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder<String>
net.rubyeye.xmemcached.transcoders.StringTranscoder
- All Implemented Interfaces:
Transcoder<String>
String Transcoder
-
Field Summary
FieldsFields inherited from class PrimitiveTypeTranscoder
primitiveAsString, tuFields inherited from class BaseSerializingTranscoder
COMPRESS_RATIO, compressionThreshold, compressMode, DEFAULT_CHARSET, DEFAULT_COMPRESSION_THRESHOLD, log -
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 PrimitiveTypeTranscoder
isPackZeros, isPrimitiveAsString, setPackZeros, setPrimitiveAsStringMethods inherited from class BaseSerializingTranscoder
compress, decodeString, decompress, deserialize, encodeString, getCompressMode, serialize, setCharset, setCompressionMode, setCompressionThresholdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Transcoder
setCompressionMode, setCompressionThreshold
-
Field Details
-
charset
-
STRING_FLAG
public static final int STRING_FLAG- See Also:
-
-
Constructor Details
-
StringTranscoder
-
StringTranscoder
public StringTranscoder()
-
-
Method Details
-
decode
Description copied from interface:TranscoderDecode the cached object into the object it represents.- Parameters:
d- the data- Returns:
- the return value
-
encode
Description copied from interface:TranscoderEncode the given object for storage.- Parameters:
o- the object- Returns:
- the CachedData representing what should be sent
-