public static class Codecs.MapCodec extends Codecs.AbstractCodec
Codec
that delegates to
PofReader.readMap(int, Map)
and
PofWriter.writeMap(int, Map)
to deserialize and serialize
an object.Modifier and Type | Field and Description |
---|---|
protected Class<? extends Map<Object,Object>> |
f_clzMap
Class that represents the Map implementation that will be serialized
and deserialized into.
|
Constructor and Description |
---|
MapCodec(Class<? extends Map<Object,Object>> clzMap)
Construct a MapCodec.
|
Modifier and Type | Method and 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