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 net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder
primitiveAsString, tu
Fields inherited from class net.rubyeye.xmemcached.transcoders.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 net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder
isPackZeros, isPrimitiveAsString, setPackZeros, setPrimitiveAsString
Methods inherited from class net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
compress, decodeString, decompress, deserialize, encodeString, getCompressMode, serialize, setCharset, setCompressionMode, setCompressionThreshold
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.rubyeye.xmemcached.transcoders.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:Transcoder
Decode the cached object into the object it represents.- Parameters:
d
- the data- Returns:
- the return value
-
encode
Description copied from interface:Transcoder
Encode the given object for storage.- Parameters:
o
- the object- Returns:
- the CachedData representing what should be sent
-