public class ObjectTransCoder extends AbstractTransCoder
ObjectTransCoder is the default TransCoder used to handle the
serialization and deserialization in memcached operations.AbstractTransCoder,
TransCoder| Constructor and Description |
|---|
ObjectTransCoder() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(InputStream input)
decode the object from the inputstream.
|
Object |
decode(InputStream input,
ClassLoader classLoader)
decode the object from the inputstream with your classloader
|
void |
encode(OutputStream output,
Object object)
encode the java object into outputstream.
|
encodepublic Object decode(InputStream input) throws IOException
TransCoderinput - inputstream.IOException - error happened in decoding the input stream.public void encode(OutputStream output, Object object) throws IOException
AbstractTransCoderencode in class AbstractTransCoderoutput - outputstream to hold the data.object - object to be encoded.IOExceptionpublic Object decode(InputStream input, ClassLoader classLoader) throws IOException
input - inputstream.classLoader - speicified classloader created by you.IOException - error happened in decoding the input stream.Copyright © 2013 Schooner Information Technology. All Rights Reserved.