public interface TransCoder
TransCoder is used to customize the serialization and deserialization
in memcached operations.ObjectTransCoder,
TransCoder| Modifier and Type | Method and Description |
|---|---|
Object |
decode(InputStream input)
decode the object from the inputstream.
|
int |
encode(SockOutputStream out,
Object object)
encode the java object into outputstream.
|
Object decode(InputStream input) throws IOException
input - inputstream.IOException - error happened in decoding the input stream.int encode(SockOutputStream out, Object object) throws IOException
out - outputstream, you can in get written length of bytes in
SockOutputStream.object - object to be encoded.IOException - error happened in encoding the output stream.Copyright © 2013 Schooner Information Technology. All Rights Reserved.