Class StringTranscoder
- java.lang.Object
-
- net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
-
- net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder<java.lang.String>
-
- net.rubyeye.xmemcached.transcoders.StringTranscoder
-
- All Implemented Interfaces:
Transcoder<java.lang.String>
public class StringTranscoder extends PrimitiveTypeTranscoder<java.lang.String>
String Transcoder
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcharsetstatic intSTRING_FLAG-
Fields 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 Constructor Description StringTranscoder()StringTranscoder(java.lang.String charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdecode(CachedData d)Decode the cached object into the object it represents.CachedDataencode(java.lang.String o)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 Detail
-
charset
private java.lang.String charset
-
STRING_FLAG
public static final int STRING_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
decode
public java.lang.String decode(CachedData d)
Description copied from interface:TranscoderDecode the cached object into the object it represents.- Parameters:
d- the data- Returns:
- the return value
-
encode
public CachedData encode(java.lang.String o)
Description copied from interface:TranscoderEncode the given object for storage.- Parameters:
o- the object- Returns:
- the CachedData representing what should be sent
-
-