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 | Description |
---|---|
DefaultCodec() |
Modifier and Type | Method | Description |
---|---|---|
Object |
decode(PofReader in,
int index) |
Deserialize an object from the provided
PofReader . |
encode, newInstance
public 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