public class WhalinTranscoder extends BaseSerializingTranscoder implements Transcoder<java.lang.Object>
charset, compressionThreshold, DEFAULT_COMPRESSION_THRESHOLD
Constructor and Description |
---|
WhalinTranscoder() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
decode(CachedData d)
Decode the cached object into the object it represents.
|
boolean |
decodeBoolean(byte[] in) |
protected java.lang.Character |
decodeCharacter(byte[] b) |
CachedData |
encode(java.lang.Object o)
Encode the given object for storage.
|
byte[] |
encodeBoolean(boolean b) |
asyncDecode, compress, decodeString, decompress, deserialize, encodeString, getMaxSize, serialize, setCharset, setCompressionThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncDecode, getMaxSize
public java.lang.Object decode(CachedData d)
Transcoder
decode
in interface Transcoder<java.lang.Object>
d
- the datapublic CachedData encode(java.lang.Object o)
Transcoder
encode
in interface Transcoder<java.lang.Object>
o
- the objectprotected java.lang.Character decodeCharacter(byte[] b)
public byte[] encodeBoolean(boolean b)
public boolean decodeBoolean(byte[] in)
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.