public static class Codecs.DefaultCodec extends Codecs.AbstractCodec
Codec that simply delegates to PofReader.readObject(int) and PofWriter.writeObject(int, Object) to deserialize and serialize an object.| Constructor and Description |
|---|
DefaultCodec() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(PofReader in, int index)
Deserialize an object from the provided
PofReader. |
encode, newInstancepublic Object decode(PofReader in, int index) throws IOException
PofReader. Implementing this interface allows introducing specific return implementations.in - the PofReader to read fromindex - the index of the POF property to deserializeIOException - if an I/O error occurs