public class StringTranscoder extends PrimitiveTypeTranscoder<String>
Modifier and Type | Field and Description |
---|---|
static int |
STRING_FLAG |
primitiveAsString, tu
compressionThreshold, compressMode, DEFAULT_CHARSET, DEFAULT_COMPRESSION_THRESHOLD, log
Constructor and Description |
---|
StringTranscoder() |
StringTranscoder(String charset) |
Modifier and Type | Method and Description |
---|---|
String |
decode(CachedData d)
Decode the cached object into the object it represents.
|
CachedData |
encode(String o)
Encode the given object for storage.
|
isPackZeros, isPrimitiveAsString, setPackZeros, setPrimitiveAsString
compress, decodeString, decompress, deserialize, encodeString, getCompressMode, serialize, setCharset, setCompressionMode, setCompressionThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCompressionMode, setCompressionThreshold
public static final int STRING_FLAG
public StringTranscoder(String charset)
public StringTranscoder()
public String decode(CachedData d)
Transcoder
d
- the datapublic CachedData encode(String o)
Transcoder
o
- the objectCopyright © 2021. All rights reserved.